From e6d7cea761882ddca400331314946bdbd6c84383 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Wed, 23 Jan 2019 17:26:45 +0100 Subject: [PATCH] Skip CoinSpecificData in mempool integration test --- tests/rpc/rpc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/rpc/rpc.go b/tests/rpc/rpc.go index 6b1fd345..6bb07233 100644 --- a/tests/rpc/rpc.go +++ b/tests/rpc/rpc.go @@ -177,14 +177,14 @@ func testGetTransaction(t *testing.T, h *TestHandler) { func testGetTransactionForMempool(t *testing.T, h *TestHandler) { for txid, want := range h.TestData.TxDetails { // reset fields that are not parsed by BlockChainParser - want.Confirmations, want.Blocktime, want.Time = 0, 0, 0 + want.Confirmations, want.Blocktime, want.Time, want.CoinSpecificData = 0, 0, 0, nil got, err := h.Chain.GetTransactionForMempool(txid) if err != nil { t.Fatal(err) } // transactions parsed from JSON may contain additional data - got.Confirmations, got.Blocktime, got.Time = 0, 0, 0 + got.Confirmations, got.Blocktime, got.Time, got.CoinSpecificData = 0, 0, 0, nil if !reflect.DeepEqual(got, want) { t.Errorf("GetTransactionForMempool() got %+v, want %+v", got, want) }