Skip to content

Commit

Permalink
Increase timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmedrano committed Sep 15, 2024
1 parent 64b7cc3 commit 8eb6c37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[profile.default]
test-threads = 1
fail-fast = false
slow-timeout = { period = "5s", terminate-after = 1 }
retries = { backoff = "fixed", count = 3, delay = "2s" }
slow-timeout = { period = "10s", terminate-after = 1 }
retries = { backoff = "fixed", count = 3, delay = "1s" }
4 changes: 3 additions & 1 deletion src/tests/processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ fn buffer_size_is_called_before_process() {
|state, _, _| {
assert_eq!(*state, "initializing");
*state = "processing";
// Give the processing thread some time to run, in case it wants to.
std::thread::sleep(std::time::Duration::from_secs(3));
crate::Control::Continue
},
);
let ac = client.activate_async((), process_handler).unwrap();
assert!(recv
.recv_timeout(std::time::Duration::from_secs(1))
.recv_timeout(std::time::Duration::from_secs(5))
.unwrap());
assert_eq!(ac.deactivate().unwrap().2.state, "processing");
}
Expand Down

0 comments on commit 8eb6c37

Please sign in to comment.