From 2c6aa0411764ed137bf137570be96567b5a5a113 Mon Sep 17 00:00:00 2001 From: diiyw Date: Sat, 22 Jun 2024 14:50:21 +0800 Subject: [PATCH] fix testing --- nodis_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodis_test.go b/nodis_test.go index da3224f..4fc1eea 100644 --- a/nodis_test.go +++ b/nodis_test.go @@ -241,7 +241,7 @@ func TestNodis_Stick(t *testing.T) { n := Open(opt) n.Set("test", []byte("test"), false) n.WatchKey([]string{"test"}, func(op patch.Op) { - if string(op.Data.GetKey()) != "test_new" { + if string(op.Data.(*patch.OpSet).Value) != "test_new" { t.Errorf("Stick() = %v, want %v", op, "test_new") } })