replication master side

This commit is contained in:
finley
2022-11-21 23:36:35 +08:00
parent a7a3da6e49
commit ba7ea942cb
23 changed files with 886 additions and 217 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func TestMSet(t *testing.T) {
conn := &connection.FakeConn{}
conn := connection.NewFakeConn()
allowFastTransaction = false
ret := MSet(testNodeA, conn, toArgs("MSET", "a", "a", "b", "b"))
asserts.AssertNotError(t, ret)
@@ -16,7 +16,7 @@ func TestMSet(t *testing.T) {
}
func TestMSetNx(t *testing.T) {
conn := &connection.FakeConn{}
conn := connection.NewFakeConn()
allowFastTransaction = false
FlushAll(testNodeA, conn, toArgs("FLUSHALL"))
ret := MSetNX(testNodeA, conn, toArgs("MSETNX", "a", "a", "b", "b"))