We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3616150 commit b9a0686Copy full SHA for b9a0686
1 file changed
compio-driver/tests/op.rs
@@ -124,7 +124,15 @@ fn push_and_wait_multi<O: OpCode + 'static>(
124
}
125
126
127
- driver.poll(None).unwrap();
+ match driver.poll(Some(Duration::from_millis(100))) {
128
+ Ok(()) => {}
129
+ Err(e)
130
+ if matches!(
131
+ e.kind(),
132
+ io::ErrorKind::TimedOut | io::ErrorKind::Interrupted
133
+ ) => {}
134
+ Err(e) => panic!("{e:?}"),
135
+ }
136
137
})
138
0 commit comments