diff --git a/g/container/gring/gring_unit_test.go b/g/container/gring/gring_unit_test.go index eb9eb9a7f..8a17b2303 100644 --- a/g/container/gring/gring_unit_test.go +++ b/g/container/gring/gring_unit_test.go @@ -85,8 +85,10 @@ func TestRing_Unlink(t *testing.T) { } // 1 2 3 4 5 // 删除当前位置往后的2个数据,返回被删除的数据 + // 重新计算s len s := r.Unlink(2) // 2 3 gtest.Assert(s.Val(), 2) + gtest.Assert(s.Len(), 1) }) }