Skip to content

Commit

Permalink
Skip CoinSpecificData in mempool integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
martinboehm committed Jan 23, 2019
1 parent 06a1e96 commit e6d7cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e6d7cea

Please sign in to comment.