| ... | @@ -1915,7 +1915,9 @@ mod tests { | ... | @@ -1915,7 +1915,9 @@ mod tests { |
| 1915 | drop(readied); | 1915 | drop(readied); |
| 1916 | let start = Instant::now(); | 1916 | let start = Instant::now(); |
| 1917 | assert!(library.prefetch(&first, || {}).is_err()); | 1917 | assert!(library.prefetch(&first, || {}).is_err()); |
| 1918 | assert!(start.elapsed() < Duration::from_secs(1)); | 1918 | // Well short of the `TIMEOUT * 3` `open` waits for an owner, however loaded the |
| | 1919 | // machine running the test. |
| | 1920 | assert!(start.elapsed() < TIMEOUT); |
| 1919 | library.keep(&first, opened); | 1921 | library.keep(&first, opened); |
| 1920 | library.prefetch(&second, || {}).unwrap(); | 1922 | library.prefetch(&second, || {}).unwrap(); |
| 1921 | library.close_kept(); | 1923 | library.close_kept(); |