From e70e605fc347a18eab0ea5b111443b4bfb05eda8 Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Mon, 7 Sep 2020 23:35:04 +0900 Subject: [PATCH] fix unit test (at least on linux) --- src/directory/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/directory/tests.rs b/src/directory/tests.rs index 189a6e79c..74f2f2840 100644 --- a/src/directory/tests.rs +++ b/src/directory/tests.rs @@ -215,6 +215,7 @@ fn test_watch(directory: &mut dyn Directory) { assert!(directory .atomic_write(Path::new("meta.json"), b"random_test_data_2") .is_ok()); + assert_eq!(receiver.recv_timeout(Duration::from_millis(500)), Ok(i)); assert!(i + 1 <= counter.load(SeqCst)); // notify can trigger more than once. } mem::drop(watch_handle);