mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +08:00
using TCC for MSetNX in cluster
This commit is contained in:
@@ -21,4 +21,8 @@ func TestMSetNx(t *testing.T) {
|
||||
FlushAll(testCluster, conn, toArgs("FLUSHALL"))
|
||||
ret := MSetNX(testCluster, conn, toArgs("MSETNX", "a", "a", "b", "b"))
|
||||
asserts.AssertNotError(t, ret)
|
||||
ret = MSetNX(testCluster, conn, toArgs("MSETNX", "a", "a", "c", "c"))
|
||||
asserts.AssertNotError(t, ret)
|
||||
ret = testCluster.Exec(conn, toArgs("MGET", "a", "b", "c"))
|
||||
asserts.AssertMultiBulkReply(t, ret, []string{"a", "b", ""})
|
||||
}
|
||||
|
Reference in New Issue
Block a user