From 2192166e37f14fc0982e3ba0f365f1fcc84c204b Mon Sep 17 00:00:00 2001 From: ClaytonNorthey92 Date: Thu, 24 Oct 2024 18:31:14 -0400 Subject: [PATCH] squashme --- e2e/monitor/main_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/monitor/main_test.go b/e2e/monitor/main_test.go index 5cb6f4c9..c4d6276f 100644 --- a/e2e/monitor/main_test.go +++ b/e2e/monitor/main_test.go @@ -19,10 +19,12 @@ import ( func TestMonitor(t *testing.T) { time.Sleep(2 * time.Minute) + expectedPopTxs := 12 + var jo jsonOutput blockWaitTimeoutTimer := time.NewTimer(10 * time.Minute) - for jo.BitcoinBlockCount < 1020 { + for jo.BitcoinBlockCount < 1020 && len(jo.PopTxCount) < expectedPopTxs { select { case <-blockWaitTimeoutTimer.C: @@ -44,8 +46,6 @@ func TestMonitor(t *testing.T) { t.Fatal(err) } - expectedPopTxs := 12 - t.Logf("expecting at least %d pop txs mined", expectedPopTxs) if jo.PopTxCount < uint64(expectedPopTxs) {