Skip to content

Commit

Permalink
update the int test
Browse files Browse the repository at this point in the history
  • Loading branch information
alicebob committed Sep 4, 2023
1 parent b6a2ab6 commit 03fc757
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions integration/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ func TestServer(t *testing.T) {
c.Do("DBSIZE")
c.Do("FLUSHALL")
c.Do("DBSIZE")
c.Do("MEMORY", "USAGE", "foo")
c.Do("MEMORY", "USAGE", "planets")

c.Do("FLUSHDB", "aSyNc")
c.Do("FLUSHALL", "AsYnC")
Expand All @@ -37,6 +35,21 @@ func TestServer(t *testing.T) {
c.Error("syntax error", "FLUSHDB", "ASYNC", "ASYNC")
c.Error("syntax error", "FLUSHALL", "ASYNC", "foo")
})

testRaw(t, func(c *client) {
c.Do("SET", "plain", "hello")
c.DoLoosely("MEMORY", "USAGE", "plain")
c.Do("LPUSH", "alist", "hello", "42")
c.DoLoosely("MEMORY", "USAGE", "alist")
c.Do("HSET", "ahash", "key", "value")
c.DoLoosely("MEMORY", "USAGE", "ahash")
c.Do("ZADD", "asset", "0", "line")
c.DoLoosely("MEMORY", "USAGE", "asset")
c.Do("PFADD", "ahll", "123")
c.DoLoosely("MEMORY", "USAGE", "ahll")
c.Do("XADD", "astream", "0-1", "name", "Mercury")
c.DoLoosely("MEMORY", "USAGE", "astream")
})
}

func TestServerTLS(t *testing.T) {
Expand Down

0 comments on commit 03fc757

Please sign in to comment.