vhost-user: tests: Fix set_log_base in dummy backend
When it returns an error then the reply message is not sent and the frontend hangs expecting a reply. This bug in the test becomes clear when the correct reply size is read in the frontend for set_log_base. Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
parent
9756a7d427
commit
5c7cf7650a
2 changed files with 2 additions and 2 deletions
|
|
@ -345,6 +345,6 @@ impl VhostUserBackendReqHandlerMut for DummyBackendReqHandler {
|
|||
Ok(())
|
||||
}
|
||||
fn set_log_base(&mut self, _log: &VhostUserLog, _file: File) -> Result<()> {
|
||||
Err(Error::InvalidMessage)
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -427,7 +427,7 @@ mod tests {
|
|||
backend.handle_request().unwrap();
|
||||
|
||||
// set_log_base,set_log_fd()
|
||||
backend.handle_request().unwrap_err();
|
||||
backend.handle_request().unwrap();
|
||||
backend.handle_request().unwrap_err();
|
||||
|
||||
// set_vring_xxx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue