@@ -111,11 +111,11 @@ export function runTests<TDatabase = unknown>(ctx: SharedTestContext<TDatabase>)
111111
112112 await adapter . updateJobStatus ( job . id , "processing" )
113113
114- const [ updated ] : [ { progressed_at : number ; status : string } ?] =
114+ const [ updated ] : [ { processed_at : Date ; status : string } ?] =
115115 await internalDbClient `SELECT processed_at, status FROM queue_jobs WHERE id=${ job . id } `
116116
117117 expect ( updated ?. status ) . toBe ( "processing" )
118- expect ( updated ?. progressed_at ) . toBeTruthy ( )
118+ expect ( updated ?. processed_at ) . toBeTruthy ( )
119119 } )
120120
121121 it ( "should get queue stats" , async ( ) => {
@@ -232,7 +232,7 @@ export function runTests<TDatabase = unknown>(ctx: SharedTestContext<TDatabase>)
232232 const result = { success : true , output : "processed" }
233233 await adapter . updateJobStatus ( job . id , "completed" , undefined , result )
234234
235- const [ updated ] : [ { completed_at : number ; status : string ; result : unknown } ?] =
235+ const [ updated ] : [ { completed_at : Date ; status : string ; result : unknown } ?] =
236236 await internalDbClient `SELECT completed_at, status, result FROM queue_jobs WHERE id=${ job . id } `
237237
238238 expect ( updated ?. status ) . toBe ( "completed" )
@@ -301,7 +301,9 @@ export function runTests<TDatabase = unknown>(ctx: SharedTestContext<TDatabase>)
301301 await adapter . updateJobStatus ( job . id , "completed" )
302302
303303 const [ updated ] : [ { result : unknown ; status : string } ?] =
304- await internalDbClient `SELECT result FROM queue_jobs WHERE id=${ job . id } `
304+ await internalDbClient `SELECT result, status FROM queue_jobs WHERE id=${ job . id } `
305+
306+ console . dir ( { updated } )
305307
306308 expect ( updated ?. result ) . toEqual ( result )
307309 expect ( updated ?. status ) . toBe ( "completed" )
0 commit comments