mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +08:00
18 lines
449 B
Go
18 lines
449 B
Go
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)
|
|
}
|