github.com/hdt3213/godis@v1.2.9/cluster/del_test.go (about) 1 package cluster 2 3 import ( 4 "github.com/hdt3213/godis/redis/connection" 5 "github.com/hdt3213/godis/redis/protocol/asserts" 6 "testing" 7 ) 8 9 func TestDel(t *testing.T) { 10 conn := connection.NewFakeConn() 11 allowFastTransaction = false 12 testNodeA.Exec(conn, toArgs("SET", "a", "a")) 13 ret := Del(testNodeA, conn, toArgs("DEL", "a", "b", "c")) 14 asserts.AssertNotError(t, ret) 15 ret = testNodeA.Exec(conn, toArgs("GET", "a")) 16 asserts.AssertNullBulk(t, ret) 17 }