mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Probable fix for flaky test
This commit is contained in:
parent
f169ee0933
commit
9d84f357b6
1 changed files with 4 additions and 2 deletions
|
@ -194,9 +194,11 @@ mod test {
|
|||
use super::*;
|
||||
use crate::sync::error::HttpError;
|
||||
|
||||
/// Longer delays on Windows
|
||||
/// The delays in the tests are aggressively short, and false positives slip through
|
||||
/// on a loaded system - especially on Windows. Fix by applying a universal
|
||||
/// multiplier.
|
||||
fn millis(millis: u64) -> Duration {
|
||||
Duration::from_millis(millis * if cfg!(windows) { 10 } else { 1 })
|
||||
Duration::from_millis(millis * if cfg!(windows) { 10 } else { 5 })
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
|
Loading…
Reference in a new issue