Skip to content

Commit f7f4392

Browse files
committed
Reduce test failures(too short sleep time)
1 parent d173df7 commit f7f4392

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/actor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ fn test_actor_common() {
399399
// Send Shutdown
400400
root_handle.send(Value::Shutdown);
401401

402-
thread::sleep(Duration::from_millis(1));
402+
thread::sleep(Duration::from_millis(2));
403403
// 3 children Actors
404404
assert_eq!(3, result_string.pop_front().unwrap().len());
405405

@@ -477,7 +477,7 @@ fn test_actor_ask() {
477477
root_handle.send(Value::AskIntByBlockingQueue((4, result_i32.clone())));
478478
root_handle.send(Value::AskIntByBlockingQueue((5, result_i32.clone())));
479479
root_handle.send(Value::AskIntByBlockingQueue((6, result_i32.clone())));
480-
thread::sleep(Duration::from_millis(1));
480+
thread::sleep(Duration::from_millis(2));
481481
let i = result_i32.take();
482482
assert_eq!(Some(40), i);
483483
let i = result_i32.take();

0 commit comments

Comments
 (0)