File tree Expand file tree Collapse file tree
turbopack/crates/turbo-tasks-backend/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ fn create_tt_with_workers(
2929 BackendOptions {
3030 num_workers : Some ( num_workers) ,
3131 small_preallocation : true ,
32- storage_mode : Some ( turbo_tasks_backend:: StorageMode :: ReadWrite ) ,
32+ // Avoid racing with the background snapshot loop; the test drives
33+ // snapshot_and_evict_for_testing manually.
34+ storage_mode : Some ( turbo_tasks_backend:: StorageMode :: ReadWriteOnShutdown ) ,
3335 evict_after_snapshot : true ,
3436 ..Default :: default ( )
3537 } ,
@@ -61,7 +63,9 @@ fn create_tt(name: &str) -> Arc<TurboTasks<TurboTasksBackend<TurboBackingStorage
6163 BackendOptions {
6264 num_workers : Some ( 2 ) ,
6365 small_preallocation : true ,
64- storage_mode : Some ( turbo_tasks_backend:: StorageMode :: ReadWrite ) ,
66+ // Avoid racing with the background snapshot loop; the test drives
67+ // snapshot_and_evict_for_testing manually.
68+ storage_mode : Some ( turbo_tasks_backend:: StorageMode :: ReadWriteOnShutdown ) ,
6569 evict_after_snapshot : true ,
6670 ..Default :: default ( )
6771 } ,
Original file line number Diff line number Diff line change 1212 num_workers: Some(2),
1313 small_preallocation: true,
1414 evict_after_snapshot: true,
15+ // Avoid racing with the background snapshot loop; the test drives
16+ // snapshot_and_evict_for_testing manually.
17+ storage_mode: Some(turbo_tasks_backend::StorageMode::ReadWriteOnShutdown),
1518 ..Default::default()
1619 },
1720 turbo_tasks_backend::turbo_backing_storage(
You can’t perform that action at this time.
0 commit comments