diff --git a/tests/gocase/unit/type/zset/zset_test.go b/tests/gocase/unit/type/zset/zset_test.go index a962946f42f..ec215271441 100644 --- a/tests/gocase/unit/type/zset/zset_test.go +++ b/tests/gocase/unit/type/zset/zset_test.go @@ -341,7 +341,6 @@ func basicTests(t *testing.T, rdb *redis.Client, ctx context.Context, encoding s rd := srv.NewTCPClient() defer func() { require.NoError(t, rd.Close()) }() require.NoError(t, rd.WriteArgs("bzpopmin", "zseta", "0")) - time.Sleep(time.Millisecond * 1000) rdb.ZAdd(ctx, "zseta", redis.Z{Score: 1, Member: "a"}) rd.MustReadStrings(t, []string{"zseta", "a", "1"}) }) @@ -369,7 +368,6 @@ func basicTests(t *testing.T, rdb *redis.Client, ctx context.Context, encoding s rd := srv.NewTCPClient() defer func() { require.NoError(t, rd.Close()) }() require.NoError(t, rd.WriteArgs("bzpopmax", "zseta", "0")) - time.Sleep(time.Millisecond * 1000) rdb.ZAdd(ctx, "zseta", redis.Z{Score: 1, Member: "a"}) rd.MustReadStrings(t, []string{"zseta", "a", "1"}) })