Merge "keystore2: increase unit test timeout"

This commit is contained in:
David Drysdale 2021-08-31 06:25:12 +00:00 committed by Gerrit Code Review
commit 58fe4fe69e

View file

@ -417,7 +417,9 @@ mod tests {
Err(RecvTimeoutError::Timeout)
);
done_receiver.recv().unwrap();
idle_done_receiver.recv_timeout(Duration::from_millis(1)).unwrap();
// Now that the last low-priority job has completed, the idle task should
// fire pretty much immediately.
idle_done_receiver.recv_timeout(Duration::from_millis(50)).unwrap();
// Idle callback not executed again even if we wait for a while.
assert_eq!(
@ -438,7 +440,7 @@ mod tests {
Err(RecvTimeoutError::Timeout)
);
done_receiver.recv().unwrap();
idle_done_receiver.recv_timeout(Duration::from_millis(1)).unwrap();
idle_done_receiver.recv_timeout(Duration::from_millis(50)).unwrap();
}
#[test]