Fix `test_display_error` vsock test
Error string changed. Adapt to new string
@@ -152,21 +152,14 @@ mod tests {
);
assert_eq!(
- format!(
- "{}",
- Error::TxBufFlush(std::io::Error::from(std::io::ErrorKind::Other))
- ),
- "An I/O error occurred, when attempting to flush the connection TX buffer: other os \
- error"
+ Error::TxBufFlush(std::io::Error::from(std::io::ErrorKind::Other)).to_string(),
+ "An I/O error occurred, when attempting to flush the connection TX buffer: other error"
);
assert_eq!(
- format!(
- "{}",
- Error::StreamWrite(std::io::Error::from(std::io::ErrorKind::Other))
- ),
+ Error::StreamWrite(std::io::Error::from(std::io::ErrorKind::Other)).to_string(),
"An I/O error occurred, when attempting to write data to the host-side stream: other \
- os error"
+ error"
);
}
}
