Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions awa/tests/persona_soak/python_probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ mod tests {
evidence.observe(Phase::Migrating, Ok(migrating));
tx.commit().await.unwrap();
evidence.observe(Phase::Ready, sessions(&observer, &application).await);
// The commit hands the connection back to the pool on a spawned task.
// If that task is still testing the connection when `close` runs,
// `close` waits for it but returns without closing the connection it
// then puts on the idle queue, which stays open while the pool lives.
// The second `close` closes it.
client.close().await;
client.close().await;
evidence.record_exit(Phase::Closed, true);
// An acknowledged close can precede the server removing its backend.
Expand Down
Loading