From 103a08352846815e130120ff188e5cf96fee78f9 Mon Sep 17 00:00:00 2001 From: MarcusGrass Date: Sun, 1 Oct 2023 12:36:48 +0200 Subject: [PATCH] Fixup epoll expect since using stdout in ci --- tiny-std/src/linux/epoll.rs | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/tiny-std/src/linux/epoll.rs b/tiny-std/src/linux/epoll.rs index db0f166..02cc30f 100644 --- a/tiny-std/src/linux/epoll.rs +++ b/tiny-std/src/linux/epoll.rs @@ -104,18 +104,10 @@ mod tests { .wait(&mut buf, EpollTimeout::WaitMillis(1_000)) .unwrap(); assert_eq!(1, buf[0].get_data()); - if std::env::var("CI").is_ok() { - assert!( - buf[0].get_events().contains(EpollEventMask::EPOLLHUP), - "Expected EPOLLHUP, got {:?}", - buf[0].get_events() - ); - } else { - assert!( - buf[0].get_events().contains(EpollEventMask::EPOLLOUT), - "Expected EPOLLOUT, got {:?}", - buf[0].get_events() - ); - } + assert!( + buf[0].get_events().contains(EpollEventMask::EPOLLOUT), + "Expected EPOLLOUT, got {:?}", + buf[0].get_events() + ); } }