Skip to content

Commit

Permalink
fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
diiyw committed Jun 22, 2024
1 parent 3a7bb4d commit 2c6aa04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
})
Expand Down

0 comments on commit 2c6aa04

Please sign in to comment.