File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ pub(crate) struct TestState {
115
115
pub rng : Arc < Mutex < ChaChaRng > > ,
116
116
pub http_client : reqwest:: Client ,
117
117
pub task_tracker : TaskTracker ,
118
- queue_worker : Arc < Mutex < QueueWorker > > ,
118
+ queue_worker : Arc < tokio :: sync :: Mutex < QueueWorker > > ,
119
119
120
120
#[ allow( dead_code) ] // It is used, as it will cancel the CancellationToken when dropped
121
121
cancellation_drop_guard : Arc < DropGuard > ,
@@ -257,7 +257,7 @@ impl TestState {
257
257
. await
258
258
. unwrap ( ) ;
259
259
260
- let queue_worker = Arc :: new ( Mutex :: new ( queue_worker) ) ;
260
+ let queue_worker = Arc :: new ( tokio :: sync :: Mutex :: new ( queue_worker) ) ;
261
261
262
262
Ok ( Self {
263
263
repository_factory : PgRepositoryFactory :: new ( pool) ,
@@ -287,7 +287,7 @@ impl TestState {
287
287
///
288
288
/// Panics if it fails to run the jobs (but not on job failures!)
289
289
pub async fn run_jobs_in_queue ( & self ) {
290
- let mut queue = self . queue_worker . lock ( ) . unwrap ( ) ;
290
+ let mut queue = self . queue_worker . lock ( ) . await ;
291
291
queue. process_all_jobs_in_tests ( ) . await . unwrap ( ) ;
292
292
}
293
293
You can’t perform that action at this time.
0 commit comments