File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments