Skip to content

Commit

Permalink
Await when adding jobs to the queue (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Jun 29, 2024
1 parent e29b492 commit 8d351ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testrunner/src/testrunners/docker-testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default async function runJob(job) {
runTime = testResult.result.browsertime[0].info.timestamp;
}

resultQueue.add(
await resultQueue.add(
{
result: testResult.result,
id: job.id,
Expand Down
2 changes: 1 addition & 1 deletion testrunner/src/testrunners/testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default async function runJob(job) {
// The timestamp from Browsertime is more exact
runTime = testResult.result.browsertime[0].info.timestamp;
}
resultQueue.add(
await resultQueue.add(
{
result: testResult.result,
id: job.id,
Expand Down

0 comments on commit 8d351ef

Please sign in to comment.