Skip to content

Commit c007f55

Browse files
committed
Add integration test for SRANDMEMBER on nonexistent key
1 parent 1a30325 commit c007f55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

integration/set_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ func TestSetSrandmember(t *testing.T) {
191191
c.Do("SRANDMEMBER", "s", "-5")
192192

193193
c.Do("SRANDMEMBER", "s", "0")
194-
c.Do("SPOP", "nosuch")
194+
c.Do("SRANDMEMBER", "nosuch")
195+
c.Do("SRANDMEMBER", "nosuch", "1")
195196

196197
// failure cases
197198
c.Error("wrong number", "SRANDMEMBER")

0 commit comments

Comments
 (0)