Skip to content

Commit

Permalink
GH-2173 Fix for test
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Feb 1, 2024
1 parent 8b9a0f5 commit 4cc5eed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/trx_finality_status_forked_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@

assert not nonProdNode.verifyAlive(), "Bridge node should have been killed if test was functioning correctly."

assert prodC.waitForNextBlock(), "Prod node C should continue to advance, even after bridge node is killed"

def getState(status):
assert status is not None, "ERROR: getTransactionStatus failed to return any status"
assert "state" in status, \
Expand All @@ -149,8 +151,8 @@ def getState(status):
forkedOutState = "FORKED_OUT"
unknownState = "UNKNOWN"

assert state == localState, \
f"ERROR: getTransactionStatus didn't return \"{localState}\" state.\n\nstatus: {json.dumps(retStatus, indent=1)}"
assert state == localState or state == inBlockState, \
f"ERROR: getTransactionStatus didn't return \"{localState}\" or \"{inBlockState}\" state.\n\nstatus: {json.dumps(retStatus, indent=1)}"

assert prodC.waitForNextBlock(), "Production node C should continue to advance, even after bridge node is killed"

Expand Down

0 comments on commit 4cc5eed

Please sign in to comment.