Skip to content

Commit

Permalink
test web-socket fork test instablity
Browse files Browse the repository at this point in the history
  • Loading branch information
taokayan committed Sep 17, 2024
1 parent d10d26a commit a762416
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/nodeos_eos_evm_ws_test_fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,22 +1084,30 @@ def makeReservedEvmAddress(account):

blockProducers0=[]
blockProducers1=[]

Utils.Print("closing websocket")
ws.close()

testSuccessful= not foundErr
except Exception as ex:
Utils.Print("Exception:" + str(ex))
finally:
Utils.Print("shutting down cluster")
TestHelper.shutdown(cluster, walletMgr, testSuccessful=testSuccessful, dumpErrorDetails=dumpErrorDetails)
if killEosInstances:
if evmNodePOpen is not None:
Utils.Print("killing evm-node pipe")
evmNodePOpen.kill()
if evmRPCPOpen is not None:
Utils.Print("killing evm-rpc-node pipe")
evmRPCPOpen.kill()
if eosEvmMinerPOpen is not None:
Utils.Print("killing miner pipe")
eosEvmMinerPOpen.kill()
if wsproxy is not None:
Utils.Print("killing wsproxy")
wsproxy.kill()

Utils.Print("exit eos evm web-socket fork test")
exitCode = 0 if testSuccessful else 1
exit(exitCode)

0 comments on commit a762416

Please sign in to comment.