Skip to content

Commit 2f163d6

Browse files
committed
Restore await
1 parent 9e5d801 commit 2f163d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ async function shortCircuit(job, func = null) {
248248
// If lazy, load records to check whether we already have the results saved
249249
if (job.data.force === false) { // NB: Strict equality; force by default
250250
_log('Updating job data directly from record for job #%g', job.id);
251-
if (updateJobFromRecord(job)) return job.done(); // No need to run tests; skip to complete routine
251+
if (await updateJobFromRecord(job)) return job.done(); // No need to run tests; skip to complete routine
252252
}
253253

254254
// Go ahead and prepare to run tests
@@ -531,7 +531,7 @@ async function buildRoutine(job) {
531531
async function updateJob(proc) {
532532
debug('Job routine complete');
533533
// Attempt to update the job data from the JSON records, throw error if this fails
534-
if (!updateJobFromRecord(job)) {
534+
if (!await updateJobFromRecord(job)) {
535535
job.done(new Error('Failed to return test result'));
536536
} else {
537537
job.done(); // All good

0 commit comments

Comments
 (0)