mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-05 16:06:57 +08:00
fixed a bug on test
This commit is contained in:
@@ -1036,7 +1036,7 @@ func TestEchoVault_DECR(t *testing.T) {
|
|||||||
presetKeyData(server, context.Background(), k, d)
|
presetKeyData(server, context.Background(), k, d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
got, err := server.Incr(tt.key)
|
got, err := server.Decr(tt.key)
|
||||||
if (err != nil) != tt.wantErr {
|
if (err != nil) != tt.wantErr {
|
||||||
t.Errorf("TTL() error = %v, wantErr %v", err, tt.wantErr)
|
t.Errorf("TTL() error = %v, wantErr %v", err, tt.wantErr)
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user