Skip to content

Commit d886371

Browse files
mayastor-borsdsharma-dc
andcommitted
Merge #1871
1871: test: ignore the undesired event for failing ctlr r=dsharma-dc a=dsharma-dc It might happen that AdminQNoticeCtrlFailed event gets reported first as a result of admin queue poll failures, and DeviceRemoved event comes afterwards from device destroy path. Co-authored-by: Diwakar Sharma <[email protected]>
2 parents 9d87805 + 30194cd commit d886371

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

io-engine/tests/block_device_nvmf.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ async fn nvmf_device_events() {
191191

192192
impl DeviceEventListener for TestEventListener {
193193
fn handle_device_event(&self, event: DeviceEventType, device: &str) {
194+
if event == DeviceEventType::AdminQNoticeCtrlFailed {
195+
return; // Not interested in this one
196+
}
194197
// Check event type and device name.
195198
assert_eq!(event, DeviceEventType::DeviceRemoved);
196199
assert_eq!(

0 commit comments

Comments
 (0)