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 {
431
431
. await
432
432
. unwrap ( ) ;
433
433
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
+ ) ;
437
440
}
438
441
439
442
#[ tokio:: test]
@@ -905,10 +908,12 @@ mod tests {
905
908
db. insert_benchmark_request ( & benchmark_request)
906
909
. await
907
910
. 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
+ ) ;
912
917
Ok ( ctx)
913
918
} )
914
919
. await ;
Original file line number Diff line number Diff line change @@ -1917,8 +1917,8 @@ where
1917
1917
FROM
1918
1918
job_queue
1919
1919
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)
1922
1922
)
1923
1923
AND (
1924
1924
benchmark_request.parent_sha IS NULL
@@ -1928,7 +1928,7 @@ where
1928
1928
FROM
1929
1929
job_queue
1930
1930
WHERE
1931
- request_tag = benchmark_request.parent_sha
1931
+ job_queue. request_tag = benchmark_request.parent_sha
1932
1932
AND job_queue.status NOT IN ($3, $4)
1933
1933
)
1934
1934
)
Original file line number Diff line number Diff line change @@ -384,9 +384,12 @@ mod tests {
384
384
. await
385
385
. unwrap ( ) ;
386
386
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
+ ) ;
390
393
}
391
394
392
395
async fn mark_as_completed (
You can’t perform that action at this time.
0 commit comments