Fantom-foundation / Norma

Integration project of Carmen and Tosca
GNU Lesser General Public License v3.0
2 stars 9 forks source link

Fix app deploy failure when non-validator rpc is used #156

Closed thaarok closed 1 year ago

thaarok commented 1 year ago

This fixes flaky test failure introduced in #155 - deploying the app fails, when non-validator RPC is used for the deployment. This is flaky, because the test succeed when DialRandomRpc() have chosen a validator RPC.

--- FAIL: TestLocalNetwork_CanPerformNetworkShutdown (75.89s)
    local_test.go:132: failed to create app: failed to initialize on-chain app; failed to wait until the Counter contract is deployed; nonce not achieved before timeout (awaited 2, current 0)
    local_test.go:132: failed to create app: failed to initialize on-chain app; failed to wait until the Counter contract is deployed; nonce not achieved before timeout (awaited 4, current 0)

The deploy fails on timeout, because the non-validator rpc starts later and is not synced (with deployed contract) in time.