From 85f57f997545daa1d73da29d8a43e79316076bf0 Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Wed, 22 Apr 2020 14:30:14 -0500 Subject: [PATCH] fix lint --- http/handler_test.go | 5 ++++- transaction_test.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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) }