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

Commit

Permalink
Add currently failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
timotree3 committed Oct 20, 2019
1 parent c94f74c commit 6ea8fa6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions crates/core/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,23 @@ pub mod tests {
test_instance(dna, None).expect("Blank instance could not be initialized!")
}

#[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();
}
}

#[test]
pub fn can_ping_instance() {
let instance = test_instance_blank();
instance.action_channel().send(ActionWrapper::new(Action::Ping)).unwrap();
}

#[test]
/// This tests calling `process_action`
/// with an action that dispatches no new ones.
Expand Down

0 comments on commit 6ea8fa6

Please sign in to comment.