Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Make newly added test more lightweight
Browse files Browse the repository at this point in the history
  • Loading branch information
timotree3 committed Oct 31, 2019
1 parent 7bf3726 commit 35919a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/core/src/instance.rs
Expand Up @@ -655,13 +655,13 @@ pub mod tests {

#[test]
pub fn can_clone_instance() {
for _i in 0..100 {
let instance = test_instance_blank();
{
let instance2 = instance.clone();
}
instance.action_channel().send(ActionWrapper::new(Action::Ping)).unwrap();
let instance = test_instance_blank();
{
let instance2 = instance.clone();
}
// wait for the action thread to receive kill signal, if applicable
std::thread::sleep(Duration::from_secs(2));
instance.action_channel().send(ActionWrapper::new(Action::Ping)).unwrap();
}

#[test]
Expand Down

0 comments on commit 35919a0

Please sign in to comment.