Skip to content

Commit

Permalink
few more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Jahaja committed May 10, 2024
1 parent e5f58c0 commit 1e41757
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,22 @@ func TestStreamAdd(t *testing.T) {
})

t.Run("XADD NOMKSTREAM", func(t *testing.T) {
mustDo(t, c,
"XADD", "reallynosuchkey", "NOMKSTREAM", "*", "one", "1",
proto.Nil,
)
mustDo(t, c,
"XADD", "reallynosuchkey", "NOMKSTREAM", "MINID", "1672545848004-0", "*", "one", "1",
proto.Nil,
)
mustDo(t, c,
"XADD", "reallynosuchkey", "NOMKSTREAM", "MAXLEN", "~", "10", "*", "one", "1",
proto.Nil,
)
mustDo(t, c,
"XADD", "reallynosuchkey", "NOMKSTREAM", "MAXLEN", "~", "10", "MINID", "1672545848004-0", "*", "one", "1",
proto.Nil,
)
})

t.Run("error cases", func(t *testing.T) {
Expand Down

0 comments on commit 1e41757

Please sign in to comment.