mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-06 01:07:06 +08:00
raft cluster
wip: raft does not care about migrating wip: optimize code wip: raft election wip wip: fix raft leader missing log entries wip fix a dead lock batch set slot route wip: raft persist wip refactor cluster suite remove relay rename relay2 refactor: allow customizing client factory test raft refactor re-balance avoid errors caused by inconsistent status on follower nodes during raft commits test raft election
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
func TestMSet(t *testing.T) {
|
||||
conn := connection.NewFakeConn()
|
||||
allowFastTransaction = false
|
||||
testNodeA := testCluster[0]
|
||||
ret := MSet(testNodeA, conn, toArgs("MSET", "a", "a", "b", "b"))
|
||||
asserts.AssertNotError(t, ret)
|
||||
ret = testNodeA.Exec(conn, toArgs("MGET", "a", "b"))
|
||||
@@ -18,6 +19,7 @@ func TestMSet(t *testing.T) {
|
||||
func TestMSetNx(t *testing.T) {
|
||||
conn := connection.NewFakeConn()
|
||||
allowFastTransaction = false
|
||||
testNodeA := testCluster[0]
|
||||
FlushAll(testNodeA, conn, toArgs("FLUSHALL"))
|
||||
ret := MSetNX(testNodeA, conn, toArgs("MSETNX", "a", "a", "b", "b"))
|
||||
asserts.AssertNotError(t, ret)
|
||||
|
Reference in New Issue
Block a user