Skip to content

Commit

Permalink
test: fix flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jun 2, 2021
1 parent 0153529 commit e49813c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ jobs:
# END-RESTORE-BOILERPLATE

- name: yarn test (zoe)
timeout-minutes: 20
timeout-minutes: 30
run: cd packages/zoe && yarn test
env:
ESM_DISABLE_CACHE: true
Expand Down
6 changes: 5 additions & 1 deletion packages/agoric-cli/integration-tests/test-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ test('workflow', async t => {
]);
finalizers.push(() => pkill(deployP.childProcess, 'SIGINT'));

timeout = setTimeout(deployResult.resolve, 120 * 1000, 'timeout');
timeout = setTimeout(
deployResult.resolve,
TIMEOUT_SECONDS * 1000,
'timeout',
);
const done = await Promise.race([deployResult.promise, deployP]);
t.is(done, 0, `deploy successful before timeout`);
clearTimeout(timeout);
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/eslint-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"jsdoc/valid-types": "off"
},
"ignorePatterns": [
"coverage/**",
"**/output/**",
"bundles/**",
"dist/**",
Expand Down
2 changes: 1 addition & 1 deletion packages/solo/test/test-home.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ test.serial('home.localTimerService createRepeater', async t => {
const notifier = E(localTimerService).makeNotifier(1n, 1n);
await E(notifier).getUpdateSince();

t.is(1, handler.getCalls());
t.truthy(handler.getCalls() >= 1);
t.truthy(handler.getArgs()[0] > timestamp);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/swingset-runner/src/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global globalThis __dirname */
/* global __dirname */
import path from 'path';
import fs from 'fs';
import process from 'process';
Expand Down

0 comments on commit e49813c

Please sign in to comment.