package cluster import ( "github.com/hdt3213/godis/redis/connection" "github.com/hdt3213/godis/redis/protocol/asserts" "testing" ) func TestDel(t *testing.T) { conn := connection.NewFakeConn() allowFastTransaction = false testNodeA.Exec(conn, toArgs("SET", "a", "a")) ret := Del(testNodeA, conn, toArgs("DEL", "a", "b", "c")) asserts.AssertNotError(t, ret) ret = testNodeA.Exec(conn, toArgs("GET", "a")) asserts.AssertNullBulk(t, ret) }