diff options
| author | KunoiSayami <[email protected]> | 2021-07-22 12:14:04 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2021-07-22 12:14:04 +0800 |
| commit | 84a915854ce73dadbed40fd13cea6044e7776ae9 (patch) | |
| tree | 84810fe81a3546af5aff0bdc044d03ce4bf9a02c /src/test.rs | |
| parent | 840a5e9e6f077d0c7cf42d6e8a7089f41fb1ab0e (diff) | |
feat(test): Add compile time wait commit time option
Diffstat (limited to 'src/test.rs')
| -rw-r--r-- | src/test.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test.rs b/src/test.rs index 8ae631a..100954c 100644 --- a/src/test.rs +++ b/src/test.rs @@ -212,7 +212,12 @@ mod core { fn test_91_auth_pass() { lock(&PathBuf::from("test/REPO_USER_ADDED"), 10); // If process is too fast, this function may got Database locked error - sleep(Duration::from_millis(10)); + sleep(Duration::from_millis( + option_env!("DISK_WAIT_TIME") + .unwrap_or("10") + .parse() + .unwrap_or(10), + )); let s = test_auth_post(); |
