Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Unstable functional tests for lisk-forging-plugin #6308

Closed
nazarhussain opened this issue Apr 8, 2021 · 0 comments · Fixed by #6320
Closed

Unstable functional tests for lisk-forging-plugin #6308

nazarhussain opened this issue Apr 8, 2021 · 0 comments · Fixed by #6320

Comments

@nazarhussain
Copy link
Contributor

Expected behavior

The functional tests for Lisk Forging Plugin must not fail randomly.

Actual behavior

Sometimes these fail with following error:

@liskhq/lisk-framework-forger-plugin: PASS test/functional/forger_info/event_track.spec.ts (57.001 s)
@liskhq/lisk-framework-forger-plugin:   ● Console
@liskhq/lisk-framework-forger-plugin:     console.error
@liskhq/lisk-framework-forger-plugin:       Unhandled error
@liskhq/lisk-framework-forger-plugin:       at process.uncaught (../../node_modules/jest-jasmine2/build/jasmine/Env.js:248:21)
@liskhq/lisk-framework-forger-plugin:     console.error
@liskhq/lisk-framework-forger-plugin:       Error: listen EADDRINUSE: address already in use 0.0.0.0:5000
@liskhq/lisk-framework-forger-plugin:           at Server.setupListenHandle [as _listen2] (net.js:1316:16)
@liskhq/lisk-framework-forger-plugin:           at listenInCluster (net.js:1364:12)
@liskhq/lisk-framework-forger-plugin:           at doListen (net.js:1501:7)
@liskhq/lisk-framework-forger-plugin:           at processTicksAndRejections (internal/process/task_queues.js:85:21)
@liskhq/lisk-framework-forger-plugin:       at process.uncaught (../../node_modules/jest-jasmine2/build/jasmine/Env.js:249:21)
@liskhq/lisk-framework-forger-plugin: FAIL test/functional/forger_info/forger_info_sync.spec.ts (6.99 s)
@liskhq/lisk-framework-forger-plugin:   ● Console
@liskhq/lisk-framework-forger-plugin:     console.error
@liskhq/lisk-framework-forger-plugin:       Unhandled error
@liskhq/lisk-framework-forger-plugin:       at process.uncaught (../../node_modules/jest-jasmine2/build/jasmine/Env.js:248:21)
@liskhq/lisk-framework-forger-plugin:     console.error
@liskhq/lisk-framework-forger-plugin:       Error: listen EADDRINUSE: address already in use 0.0.0.0:5000
@liskhq/lisk-framework-forger-plugin:           at Server.setupListenHandle [as _listen2] (net.js:1316:16)
@liskhq/lisk-framework-forger-plugin:           at listenInCluster (net.js:1364:12)
@liskhq/lisk-framework-forger-plugin:           at doListen (net.js:1501:7)
@liskhq/lisk-framework-forger-plugin:           at processTicksAndRejections (internal/process/task_queues.js:85:21)
@liskhq/lisk-framework-forger-plugin:       at process.uncaught (../../node_modules/jest-jasmine2/build/jasmine/Env.js:249:21)
@liskhq/lisk-framework-forger-plugin:     console.error
@liskhq/lisk-framework-forger-plugin:       Unhandled error
@liskhq/lisk-framework-forger-plugin:       at process.uncaught (../../node_modules/jest-jasmine2/build/jasmine/Env.js:248:21)
@liskhq/lisk-framework-forger-plugin:     console.error
@liskhq/lisk-framework-forger-plugin:       ReadError: Database is not open
@liskhq/lisk-framework-forger-plugin:           at maybeError (/home/lisk/workspace/lisk-sdk_PR-6294/node_modules/levelup/lib/levelup.js:339:32)
@liskhq/lisk-framework-forger-plugin:           at LevelUP.Object.<anonymous>.LevelUP.put (/home/lisk/workspace/lisk-sdk_PR-6294/node_modules/levelup/lib/levelup.js:211:7)
@liskhq/lisk-framework-forger-plugin:           at KVStore.put (/home/lisk/workspace/lisk-sdk_PR-6294/node_modules/@liskhq/lisk-db/src/kv_store.ts:98:18)
@liskhq/lisk-framework-forger-plugin:           at Object.setForgerSyncInfo (/home/lisk/workspace/lisk-sdk_PR-6294/framework-plugins/lisk-framework-forger-plugin/src/db.ts:51:11)
@liskhq/lisk-framework-forger-plugin:           at ForgerPlugin._syncForgerInfo (/home/lisk/workspace/lisk-sdk_PR-6294/framework-plugins/lisk-framework-forger-plugin/src/forger_plugin.ts:229:9)
@liskhq/lisk-framework-forger-plugin:           at processTicksAndRejections (internal/process/task_queues.js:97:5)
@liskhq/lisk-framework-forger-plugin:           at Immediate.<anonymous> (/home/lisk/workspace/lisk-sdk_PR-6294/framework-plugins/lisk-framework-forger-plugin/src/forger_plugin.ts:140:4)
@liskhq/lisk-framework-forger-plugin:       at process.uncaught (../../node_modules/jest-jasmine2/build/jasmine/Env.js:249:21)
@liskhq/lisk-framework-forger-plugin:   ● Forger Info Sync › should sync information from scratch on startup
@liskhq/lisk-framework-forger-plugin:     listen EADDRINUSE: address already in use 0.0.0.0:5000

Steps to reproduce

Run tests suit on Jenkins

Which version(s) does this affect? (Environment, OS, etc...)

development

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants