WIP: change over background executor test helpers
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user