Skip to content

Commit

Permalink
fix bug of a test case
Browse files Browse the repository at this point in the history
Signed-off-by: fredchenbj <cfworking@163.com>
  • Loading branch information
fredbjer committed Apr 12, 2019
1 parent 78ca37f commit 84367b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/util/future_pool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,7 @@ mod tests {
spawn_future_without_wait(&pool, Duration::from_millis(1500));
assert_eq!(pool.get_running_task_count(), 3);

thread::sleep(Duration::from_millis(700)); // f2 completed, f3 elapsed 700
assert_eq!(pool.get_running_task_count(), 2);

thread::sleep(Duration::from_millis(2000));
thread::sleep(Duration::from_millis(2700));
assert_eq!(pool.get_running_task_count(), 0);
}
}

0 comments on commit 84367b8

Please sign in to comment.