diff --git a/http/handler_test.go b/http/handler_test.go index fa9b5fed8..53c7d2da2 100644 --- a/http/handler_test.go +++ b/http/handler_test.go @@ -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) diff --git a/transaction_test.go b/transaction_test.go index a05c220fb..171d1bbab 100644 --- a/transaction_test.go +++ b/transaction_test.go @@ -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) }