diff --git a/src/materialized/tests/sql.rs b/src/materialized/tests/sql.rs index f6e977ec6004..9fb6feb2070c 100644 --- a/src/materialized/tests/sql.rs +++ b/src/materialized/tests/sql.rs @@ -655,6 +655,10 @@ fn test_tail_shutdown() -> Result<(), Box> { // Un-gracefully abort the connection. conn_task.abort(); + // Need to await `conn_task` to actually deliver the `abort`. We don't + // care about the result though (it's probably `JoinError::Cancelled`). + let _ = conn_task.await; + Ok::<_, Box>(()) })?;