WIP: change over background executor test helpers

This commit is contained in:
Mikayla
2023-11-06 10:16:08 -08:00
parent 123439adc2
commit d66ed4310f
4 changed files with 3 additions and 25 deletions
-5
View File
@@ -222,11 +222,6 @@ impl BackgroundExecutor {
self.dispatcher.as_test().unwrap().allow_parking();
}
#[cfg(any(test, feature = "test-support"))]
pub fn record_backtrace(&self) {
self.dispatcher.as_test().unwrap().record_backtrace();
}
#[cfg(any(test, feature = "test-support"))]
pub fn rng(&self) -> StdRng {
self.dispatcher.as_test().unwrap().rng()
+1 -5
View File
@@ -128,12 +128,8 @@ impl TestDispatcher {
})
}
pub fn record_backtrace(&self) {
todo!("record_backtrace")
}
pub fn rng(&self) -> StdRng {
todo!("rng")
self.state.lock().random.clone()
}
}