mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +08:00
16 lines
370 B
Go
16 lines
370 B
Go
package cluster
|
|
|
|
import (
|
|
"github.com/hdt3213/godis/redis/reply/asserts"
|
|
"testing"
|
|
)
|
|
|
|
func TestDel(t *testing.T) {
|
|
allowFastTransaction = false
|
|
testCluster.Exec(nil, toArgs("SET", "a", "a"))
|
|
ret := Del(testCluster, nil, toArgs("DEL", "a", "b", "c"))
|
|
asserts.AssertNotError(t, ret)
|
|
ret = testCluster.Exec(nil, toArgs("GET", "a"))
|
|
asserts.AssertNullBulk(t, ret)
|
|
}
|