Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Workflows #82

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/imagery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "node ./bin/start-service",
"build": "babel src --out-dir lib",
"build-msg": "mkdir -p lib && pbjs -t static-module --es6 --keep-case -o src/messages.js src/messages/*.proto",
"test": "jest",
"test": "jest --runInBand",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solves issue of test flakiness mentioned in #59. Jest by default runs tests in parallel, so multiple tests were modifying the sqlite file at the same time (hence the unexplained behavior of rolling back a transaction that wasn't underway).

"lint": "eslint src test --ignore-pattern src/messages.js"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion services/imagery/src/backends/sync-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class SyncBackend {
const { body: msg } =
await request.get(this._syncUrl + '/api/available')
.proto(imagery.AvailableImages)
.timeout(5000);
.timeout(3000);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 second timeout is causing some tests to fail intermittently.


return msg.id_list;
}
Expand Down