diff --git a/src/device/blk.rs b/src/device/blk.rs index 9e0ee72f..43931705 100644 --- a/src/device/blk.rs +++ b/src/device/blk.rs @@ -607,7 +607,7 @@ mod tests { let transport = FakeTransport { device_type: DeviceType::Block, max_queue_size: QUEUE_SIZE.into(), - device_features: 0, + device_features: BlkFeature::RING_INDIRECT_DESC.bits(), config_space: NonNull::from(&mut config_space), state: state.clone(), }; @@ -677,7 +677,7 @@ mod tests { let transport = FakeTransport { device_type: DeviceType::Block, max_queue_size: QUEUE_SIZE.into(), - device_features: 0, + device_features: BlkFeature::RING_INDIRECT_DESC.bits(), config_space: NonNull::from(&mut config_space), state: state.clone(), }; @@ -752,7 +752,7 @@ mod tests { let transport = FakeTransport { device_type: DeviceType::Block, max_queue_size: QUEUE_SIZE.into(), - device_features: BlkFeature::FLUSH.bits(), + device_features: (BlkFeature::RING_INDIRECT_DESC | BlkFeature::FLUSH).bits(), config_space: NonNull::from(&mut config_space), state: state.clone(), }; @@ -819,7 +819,7 @@ mod tests { let transport = FakeTransport { device_type: DeviceType::Block, max_queue_size: QUEUE_SIZE.into(), - device_features: 0, + device_features: BlkFeature::RING_INDIRECT_DESC.bits(), config_space: NonNull::from(&mut config_space), state: state.clone(), };