From 0d68daab86c45613a98bf7d7ddb4ca51b8c39681 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 23 Feb 2021 14:31:02 +0100 Subject: [PATCH] proxmox::test::io: properly forward flush Signed-off-by: Wolfgang Bumiller --- proxmox/src/test/io.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxmox/src/test/io.rs b/proxmox/src/test/io.rs index 919aac12..84aaf318 100644 --- a/proxmox/src/test/io.rs +++ b/proxmox/src/test/io.rs @@ -69,7 +69,8 @@ impl AsyncWrite for AsyncBlockingWriter { } fn poll_flush(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll> { - Poll::Ready(Ok(())) + let this = Pin::get_mut(self); + Poll::Ready(this.inner.flush()) } fn poll_shutdown(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll> {