Skip to content

Commit

Permalink
remove sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangsx-1 committed Jun 18, 2023
1 parent b115e23 commit 3a721c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/gocase/unit/type/zset/zset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
})
Expand Down Expand Up @@ -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"})
})
Expand Down

0 comments on commit 3a721c5

Please sign in to comment.