Skip to content

Commit

Permalink
Fixup epoll expect since using stdout in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusGrass committed Oct 1, 2023
1 parent 6e32f36 commit 103a083
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions tiny-std/src/linux/epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
}

0 comments on commit 103a083

Please sign in to comment.