ChainSafe / gossamer

🕸️ Go Implementation of the Polkadot Host
https://chainsafe.github.io/gossamer
GNU Lesser General Public License v3.0
431 stars 112 forks source link

Fix Flaky Test in `polkadotjs_test ` #2754

Open EclesioMeloJunior opened 2 years ago

EclesioMeloJunior commented 2 years ago

Describe the bug

start_polkadotjs_test.go:65: 
            Error Trace:    /go/src/github.com/ChainSafe/gossamer/tests/polkadotjs_test/start_polkadotjs_test.go:65
            Error:          Received unexpected error:
                            exit status 1
            Test:           TestStartGossamerAndPolkadotAPI
            Messages:       

                              Testing polkadot.js/api calls:
                                api constants
                            2022-08-15 19:36:19        RPC-CORE: getRuntimeVersion(at?: BlockHash): RuntimeVersion:: -32000: failed to get runtime instance: null
                            2022-08-15 19:36:19        API/INIT: Error: FATAL: Unable to initialize the API: -32000: failed to get runtime instance: null
                                at ApiPromise._onProviderConnect2 (/go/src/github.com/ChainSafe/gossamer/tests/polkadotjs_test/node_modules/@polkadot/api/cjs/base/Init.js:431:19)
                                at processTicksAndRejections (internal/process/task_queues.js:95:5)
                            2022-08-15 19:36:19        RPC-CORE: getMetadata(at?: BlockHash): Metadata:: -32000: failed to get runtime instance: null
    start_polkadotjs_test.go:[60](https://github.com/ChainSafe/gossamer/runs/7844762885?check_suite_focus=true#step:3:61): Node alice-0 terminated
timwu20 commented 11 months ago

@EclesioMeloJunior is this still flakey?

EclesioMeloJunior commented 11 months ago

@timwu20 yes, they still flaky in our CI