From 384d24c6c2843e9f19e1b6d47b525e5049e0bdc3 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Sun, 7 Oct 2018 12:38:45 +0200 Subject: [PATCH] Fix socketio_test --- server/socketio_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/socketio_test.go b/server/socketio_test.go index 71406336..b5ba4378 100644 --- a/server/socketio_test.go +++ b/server/socketio_test.go @@ -1,4 +1,4 @@ -// build integration +// +build integration package server @@ -102,13 +102,13 @@ func equalTx(logTx resTx, bbTx resTx) error { if logTx.Hex != bbTx.Hex { return errors.Errorf("Different Hex bb: %v log: %v", bbTx.Hex, logTx.Hex) } - if logTx.BlockTimestamp != bbTx.BlockTimestamp { + if logTx.BlockTimestamp != bbTx.BlockTimestamp && logTx.BlockTimestamp != 0 { return errors.Errorf("Different BlockTimestamp bb: %v log: %v", bbTx.BlockTimestamp, logTx.BlockTimestamp) } if logTx.FeeSatoshis != bbTx.FeeSatoshis { return errors.Errorf("Different FeeSatoshis bb: %v log: %v", bbTx.FeeSatoshis, logTx.FeeSatoshis) } - if logTx.Height != bbTx.Height { + if logTx.Height != bbTx.Height && logTx.Height != -1 { return errors.Errorf("Different Height bb: %v log: %v", bbTx.Height, logTx.Height) } if logTx.InputSatoshis != bbTx.InputSatoshis {