From 6f24e808f84cb66064e8618a157932697f2532a5 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 16 Apr 2024 18:47:55 -0700 Subject: [PATCH] ds_inhibit: Attempt to fix race condition in test --- src/ds_inhibit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ds_inhibit.rs b/src/ds_inhibit.rs index 934ea6c..831205f 100644 --- a/src/ds_inhibit.rs +++ b/src/ds_inhibit.rs @@ -507,7 +507,7 @@ mod test { symlink(hid.hidraw(), path.join("proc/1/fd/3")).expect("symlink"); let f = File::open(hid.hidraw()).expect("hidraw"); - nyield(2).await; + nyield(3).await; assert_eq!( read_to_string(sys_base.join("input/input0/inhibited")).expect("inhibited"), "1\n"