Skip to content

Commit

Permalink
extend test wait
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 1, 2023
1 parent fb1c130 commit 7a027f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions svc/backupscanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function processMatch(matchId, cb) {
return cb();
}
const match = body.result;
try {
await insertMatchPromise(match, {
type: 'api',
origin: 'scanner',
Expand All @@ -46,6 +47,9 @@ function processMatch(matchId, cb) {
// If GetMatchHistoryBySequenceNum is out for a long time, this might be a problem
redis.setex(`scanner_insert:${match.match_id}`, 3600 * 24 * 30, 1);
cb();
} catch(e) {
cb(e);
}
}
);
});
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ describe('replay parse', function () {
throw e;
}
console.log('waiting for insert settle');
await new Promise((resolve) => setTimeout(resolve, 10000));
await new Promise((resolve) => setTimeout(resolve, 20000));
console.log('checking parsed match');
// ensure parse data got inserted
const match = await buildMatch(tests[key].match_id);
Expand Down

0 comments on commit 7a027f2

Please sign in to comment.