Skip to content

Commit

Permalink
Add integration test for SRANDMEMBER on nonexistent key
Browse files Browse the repository at this point in the history
  • Loading branch information
WKBae committed May 27, 2024
1 parent 1a30325 commit c007f55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ func TestSetSrandmember(t *testing.T) {
c.Do("SRANDMEMBER", "s", "-5")

c.Do("SRANDMEMBER", "s", "0")
c.Do("SPOP", "nosuch")
c.Do("SRANDMEMBER", "nosuch")
c.Do("SRANDMEMBER", "nosuch", "1")

// failure cases
c.Error("wrong number", "SRANDMEMBER")
Expand Down

0 comments on commit c007f55

Please sign in to comment.