From 981baeb0b93088bbc15cd2943435b7dc54ec7953 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 7 Jun 2024 07:13:45 -0500 Subject: [PATCH 1/2] GH-246 Allow time for blocks to reach and be processed by irreversible snapshot node --- tests/nodeos_chainbase_allocation_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/nodeos_chainbase_allocation_test.py b/tests/nodeos_chainbase_allocation_test.py index cfc65f7197..afc350e624 100755 --- a/tests/nodeos_chainbase_allocation_test.py +++ b/tests/nodeos_chainbase_allocation_test.py @@ -79,6 +79,9 @@ def isSetProdsBlockNumIrr(): producerNode.kill(signal.SIGTERM) + # wait for all blocks to arrive and be processed by irrNode + time.sleep(1) + # Create the snapshot and rename it to avoid name conflict later on res = irrNode.createSnapshot() beforeShutdownSnapshotPath = res["payload"]["snapshot_name"] From 462d7cde019367937b078c8546d56af88accc6b0 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 7 Jun 2024 07:30:12 -0500 Subject: [PATCH 2/2] GH-246 Increase sleep to 3 seconds to provide plenty of time for blocks to arrive --- tests/nodeos_chainbase_allocation_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nodeos_chainbase_allocation_test.py b/tests/nodeos_chainbase_allocation_test.py index afc350e624..23887dbfba 100755 --- a/tests/nodeos_chainbase_allocation_test.py +++ b/tests/nodeos_chainbase_allocation_test.py @@ -80,7 +80,7 @@ def isSetProdsBlockNumIrr(): producerNode.kill(signal.SIGTERM) # wait for all blocks to arrive and be processed by irrNode - time.sleep(1) + time.sleep(3) # Create the snapshot and rename it to avoid name conflict later on res = irrNode.createSnapshot()