Skip to content

Commit c2c3018

Browse files
committed
Fix linux test
Signed-off-by: Jiahao XU <[email protected]>
1 parent 52616b9 commit c2c3018

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/unix.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,11 @@ mod test {
621621
);
622622

623623
#[cfg(target_os = "linux")]
624-
run_named_fifo_try_acquire_tests(&new_client_from_pipe().0);
624+
{
625+
let client = new_client_from_pipe().0;
626+
client.acquire().unwrap();
627+
run_named_fifo_try_acquire_tests(&client);
628+
}
625629
}
626630

627631
#[test]

0 commit comments

Comments
 (0)