This commit is contained in:
Matt Jaffee 2020-04-22 14:30:14 -05:00
parent 7c7836f16f
commit 85f57f9975
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF
2 changed files with 5 additions and 2 deletions

View file

@ -66,7 +66,10 @@ func TestMarshalUnmarshalTransactionResponse(t *testing.T) {
}
mytr := &http.TransactionResponse{}
json.Unmarshal(data, mytr)
err = json.Unmarshal(data, mytr)
if err != nil {
t.Fatalf("unmarshalling: %v", err)
}
if mytr.Error != tst.tr.Error {
t.Errorf("errors mismatch:exp/got \n%v\n%v", tst.tr.Error, mytr.Error)

View file

@ -234,7 +234,7 @@ func TestInMemTransactionStore(t *testing.T) {
t.Fatalf("unexpected transaction for blah: %+v", t)
}
trns, err = ims.Get("nope")
_, err = ims.Get("nope")
if err != pilosa.ErrTransactionNotFound {
t.Fatalf("unexpected error: %v", err)
}