From d82758183685dbab712fb60aac53db62ff807aa3 Mon Sep 17 00:00:00 2001 From: Martin Angers Date: Sat, 4 Sep 2021 13:54:26 -0400 Subject: [PATCH] Fix flaky test failure with SPOP --- cluster_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster_test.go b/cluster_test.go index 65b0a82..2c2b644 100644 --- a/cluster_test.go +++ b/cluster_test.go @@ -818,8 +818,8 @@ func TestCommands(t *testing.T) { {"SISMEMBER", redis.Args{"t1", "a"}, int64(1), ""}, {"SMEMBERS", redis.Args{"t1"}, lenResult(2), ""}, // order is not deterministic {"SMOVE", redis.Args{"t1", "{t1}.c", "a"}, int64(1), ""}, - {"SPOP", redis.Args{"t3"}, nil, ""}, - {"SRANDMEMBER", redis.Args{"t3"}, nil, ""}, + {"SPOP", redis.Args{"t3{t1}"}, nil, ""}, + {"SRANDMEMBER", redis.Args{"t3{t1}"}, nil, ""}, {"SREM", redis.Args{"t1", "b"}, int64(1), ""}, {"SSCAN", redis.Args{"{t1}.b", 0}, lenResult(2), ""}, {"SUNION", redis.Args{"{t1}.b", "{t1}.c"}, lenResult(3), ""},