Created
March 25, 2024 12:38
-
-
Save DylanVerstraete/066664ba9b342a88ed9c4d467a18029b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ cli git:(feat_cli_check_min_bond) ✗ PROXY_ENABLED=yes PROXY_SECRET_VARIANT=no-funds jest -i src/test/integration-tests/validate.test.ts -t 'should error with not enough bonded' --force-exit --verbose --detectOpenHandles | |
console.log | |
Sending transaction... | |
at src/lib/tx.ts:14:17 | |
console.log | |
Sending transaction... | |
at src/lib/tx.ts:14:17 | |
FAIL src/test/integration-tests/validate.test.ts (122.14 s) | |
validate | |
when NOT bonded | |
○ skipped should error with staking.NotController message | |
when ALREADY bonded | |
✕ should error with not enough bonded (90003 ms) | |
○ skipped should error with proxy.NotProxy message | |
○ skipped should become a waiting validator | |
○ skipped should error if not enough bonded | |
● validate › when ALREADY bonded › should error with not enough bonded | |
thrown: "Exceeded timeout of 30000 ms for a hook. | |
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." | |
67 | | |
68 | describe('when ALREADY bonded', () => { | |
> 69 | beforeAll(async () => { | |
| ^ | |
70 | await increaseValidatorCount(api, sudoSigner); | |
71 | }, 30_000); | |
72 | | |
at src/test/integration-tests/validate.test.ts:69:9 | |
at src/test/integration-tests/validate.test.ts:68:5 | |
at Object.<anonymous> (src/test/integration-tests/validate.test.ts:15:1) | |
● validate › when ALREADY bonded › should error with not enough bonded | |
thrown: "Exceeded timeout of 90000 ms for a hook. | |
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." | |
78 | }); | |
79 | | |
> 80 | afterEach(async () => { | |
| ^ | |
81 | // set default min bond config to 0 | |
82 | await setMinBondConfig(api, 0); | |
83 | }, 90_000); | |
at src/test/integration-tests/validate.test.ts:80:9 | |
at src/test/integration-tests/validate.test.ts:68:5 | |
at Object.<anonymous> (src/test/integration-tests/validate.test.ts:15:1) | |
● validate › when ALREADY bonded › should error with not enough bonded | |
TypeError: Cannot read properties of undefined (reading 'address') | |
130 | export function tearDownProxy(cli: any, proxy: any) { | |
131 | if (process.env.PROXY_ENABLED === 'yes') { | |
> 132 | const result = cli(`proxy remove --proxy ${proxy.address}`); | |
| ^ | |
133 | expect(result.exitCode).toEqual(0); | |
134 | expect(result.stdout).toContain('Transaction included at block'); | |
135 | } | |
at tearDownProxy (src/test/integration-tests/helpers.ts:132:58) | |
at Object.<anonymous> (src/test/integration-tests/validate.test.ts:41:22) | |
● validate › when ALREADY bonded › should error with proxy.NotProxy message | |
thrown: "Exceeded timeout of 30000 ms for a hook. | |
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." | |
67 | | |
68 | describe('when ALREADY bonded', () => { | |
> 69 | beforeAll(async () => { | |
| ^ | |
70 | await increaseValidatorCount(api, sudoSigner); | |
71 | }, 30_000); | |
72 | | |
at src/test/integration-tests/validate.test.ts:69:9 | |
at src/test/integration-tests/validate.test.ts:68:5 | |
at Object.<anonymous> (src/test/integration-tests/validate.test.ts:15:1) | |
● validate › when ALREADY bonded › should become a waiting validator | |
thrown: "Exceeded timeout of 30000 ms for a hook. | |
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." | |
67 | | |
68 | describe('when ALREADY bonded', () => { | |
> 69 | beforeAll(async () => { | |
| ^ | |
70 | await increaseValidatorCount(api, sudoSigner); | |
71 | }, 30_000); | |
72 | | |
at src/test/integration-tests/validate.test.ts:69:9 | |
at src/test/integration-tests/validate.test.ts:68:5 | |
at Object.<anonymous> (src/test/integration-tests/validate.test.ts:15:1) | |
● validate › when ALREADY bonded › should error if not enough bonded | |
thrown: "Exceeded timeout of 30000 ms for a hook. | |
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." | |
67 | | |
68 | describe('when ALREADY bonded', () => { | |
> 69 | beforeAll(async () => { | |
| ^ | |
70 | await increaseValidatorCount(api, sudoSigner); | |
71 | }, 30_000); | |
72 | | |
at src/test/integration-tests/validate.test.ts:69:9 | |
at src/test/integration-tests/validate.test.ts:68:5 | |
at Object.<anonymous> (src/test/integration-tests/validate.test.ts:15:1) | |
Test Suites: 1 failed, 1 total | |
Tests: 1 failed, 4 skipped, 5 total | |
Snapshots: 0 total | |
Time: 122.191 s, estimated 123 s | |
Ran all test suites matching /src\/test\/integration-tests\/validate.test.ts/i with tests matching "should error with not enough bonded". | |
Jest has detected the following 1 open handle potentially keeping Jest from exiting: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment