Skip to content
Snippets Groups Projects
Commit b04d5848 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

cypress: Increase sqlite3 busy timeout

It should make cypress tests execution on Jenkins more stable.
parent 8a35c0b6
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ async function getMetadataForOrigin(originUrl, baseUrl) {
function getDatabase() {
const db = new sqlite3.Database(`./swh-web-test${buildId}.sqlite3`);
// to prevent "database is locked" error when running tests
db.configure('busyTimeout', 20000);
db.run('PRAGMA journal_mode = WAL;');
return db;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment