Skip to content

Commit

Permalink
Merge pull request #327 from AntelopeIO/GH-321-ship-test
Browse files Browse the repository at this point in the history
Test: SHiP test: make test more reliable
  • Loading branch information
heifner authored Jun 27, 2024
2 parents 2c98a7c + 7ca30ad commit a9e4dcf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/ship_streamer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,17 +159,15 @@
Print(f"Client {i} started, Ship node head is: {shipNode.getBlockNum()}")

# Generate a fork
nonProdNode.waitForProducer("defproducera")
prodNode3Prod= "defproducerd"
preKillBlockNum=nonProdNode.getBlockNum()
preKillBlockProducer=nonProdNode.getBlockProducerByNum(preKillBlockNum)
forkAtProducer="defproducerb"
nonProdNode.killNodeOnProducer(producer=forkAtProducer, whereInSequence=1)
Print(f"Current block producer {preKillBlockProducer} fork will be at producer {forkAtProducer}")
prodNode0.waitForProducer("defproducera")
prodNode0.waitForProducer("defproducerc")
prodNode3.waitForProducer(prodNode3Prod)
if nonProdNode.verifyAlive():
prodNode0.waitForProducer("defproducera")
prodNode3.waitForProducer(prodNode3Prod)
if nonProdNode.verifyAlive():
Utils.errorExit("Bridge did not shutdown")
Print("Fork started")
Expand Down

0 comments on commit a9e4dcf

Please sign in to comment.