File tree Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -431,9 +431,12 @@ mod tests {
431431 . await
432432 . unwrap ( ) ;
433433
434- db. mark_benchmark_request_as_completed ( request_tag)
435- . await
436- . unwrap ( ) ;
434+ assert_eq ! (
435+ db. mark_benchmark_request_as_completed( request_tag)
436+ . await
437+ . unwrap( ) ,
438+ true
439+ ) ;
437440 }
438441
439442 #[ tokio:: test]
@@ -905,10 +908,12 @@ mod tests {
905908 db. insert_benchmark_request ( & benchmark_request)
906909 . await
907910 . unwrap ( ) ;
908- assert ! ( db
909- . mark_benchmark_request_as_completed( "sha-1" )
910- . await
911- . is_ok( ) ) ;
911+ assert_eq ! (
912+ db. mark_benchmark_request_as_completed( "sha-1" )
913+ . await
914+ . unwrap( ) ,
915+ true
916+ ) ;
912917 Ok ( ctx)
913918 } )
914919 . await ;
Original file line number Diff line number Diff line change @@ -1917,8 +1917,8 @@ where
19171917 FROM
19181918 job_queue
19191919 WHERE
1920- request_tag = benchmark_request.tag
1921- AND status NOT IN ($3, $4)
1920+ job_queue. request_tag = benchmark_request.tag
1921+ AND job_queue. status NOT IN ($3, $4)
19221922 )
19231923 AND (
19241924 benchmark_request.parent_sha IS NULL
@@ -1928,7 +1928,7 @@ where
19281928 FROM
19291929 job_queue
19301930 WHERE
1931- request_tag = benchmark_request.parent_sha
1931+ job_queue. request_tag = benchmark_request.parent_sha
19321932 AND job_queue.status NOT IN ($3, $4)
19331933 )
19341934 )
Original file line number Diff line number Diff line change @@ -384,9 +384,12 @@ mod tests {
384384 . await
385385 . unwrap ( ) ;
386386
387- db. mark_benchmark_request_as_completed ( request_tag)
388- . await
389- . unwrap ( ) ;
387+ assert_eq ! (
388+ db. mark_benchmark_request_as_completed( request_tag)
389+ . await
390+ . unwrap( ) ,
391+ true
392+ ) ;
390393 }
391394
392395 async fn mark_as_completed (
You can’t perform that action at this time.
0 commit comments