Skip to content

Commit e6d7cea

Browse files
committed
Skip CoinSpecificData in mempool integration test
1 parent 06a1e96 commit e6d7cea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/rpc/rpc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ func testGetTransaction(t *testing.T, h *TestHandler) {
177177
func testGetTransactionForMempool(t *testing.T, h *TestHandler) {
178178
for txid, want := range h.TestData.TxDetails {
179179
// reset fields that are not parsed by BlockChainParser
180-
want.Confirmations, want.Blocktime, want.Time = 0, 0, 0
180+
want.Confirmations, want.Blocktime, want.Time, want.CoinSpecificData = 0, 0, 0, nil
181181

182182
got, err := h.Chain.GetTransactionForMempool(txid)
183183
if err != nil {
184184
t.Fatal(err)
185185
}
186186
// transactions parsed from JSON may contain additional data
187-
got.Confirmations, got.Blocktime, got.Time = 0, 0, 0
187+
got.Confirmations, got.Blocktime, got.Time, got.CoinSpecificData = 0, 0, 0, nil
188188
if !reflect.DeepEqual(got, want) {
189189
t.Errorf("GetTransactionForMempool() got %+v, want %+v", got, want)
190190
}

0 commit comments

Comments
 (0)