Skip to content

Commit

Permalink
test runner: fix logic error and tune performance under Rust 1.74
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Nov 1, 2023
1 parent ff2da47 commit f25560b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ fn _main() -> io::Result<()> {
.spawn()
.unwrap();

let mut poll_count = 0;
let mut poll_count = 1;
let status = loop {
let poll_interval = Duration::from_millis(if poll_count % 6 == 0 { 500 } else { 25 });
let poll_interval = Duration::from_millis(if poll_count % 3 == 0 { 333 } else { 100 });
match vim.wait_timeout(poll_interval) {
Ok(Some(status)) => break status,
Ok(None) => {
Expand Down

0 comments on commit f25560b

Please sign in to comment.