fixed a bug on test

This commit is contained in:
Sahil
2024-06-23 19:49:15 +05:30
parent 90b3d40fdb
commit 10f01c1d87

View File

@@ -1036,7 +1036,7 @@ func TestEchoVault_DECR(t *testing.T) {
presetKeyData(server, context.Background(), k, d)
}
}
got, err := server.Incr(tt.key)
got, err := server.Decr(tt.key)
if (err != nil) != tt.wantErr {
t.Errorf("TTL() error = %v, wantErr %v", err, tt.wantErr)
return