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 {
115115 pub rng : Arc < Mutex < ChaChaRng > > ,
116116 pub http_client : reqwest:: Client ,
117117 pub task_tracker : TaskTracker ,
118- queue_worker : Arc < Mutex < QueueWorker > > ,
118+ queue_worker : Arc < tokio :: sync :: Mutex < QueueWorker > > ,
119119
120120 #[ allow( dead_code) ] // It is used, as it will cancel the CancellationToken when dropped
121121 cancellation_drop_guard : Arc < DropGuard > ,
@@ -257,7 +257,7 @@ impl TestState {
257257 . await
258258 . unwrap ( ) ;
259259
260- let queue_worker = Arc :: new ( Mutex :: new ( queue_worker) ) ;
260+ let queue_worker = Arc :: new ( tokio :: sync :: Mutex :: new ( queue_worker) ) ;
261261
262262 Ok ( Self {
263263 repository_factory : PgRepositoryFactory :: new ( pool) ,
@@ -287,7 +287,7 @@ impl TestState {
287287 ///
288288 /// Panics if it fails to run the jobs (but not on job failures!)
289289 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 ;
291291 queue. process_all_jobs_in_tests ( ) . await . unwrap ( ) ;
292292 }
293293
You can’t perform that action at this time.
0 commit comments