test: even more time to disconnect?

This commit is contained in:
əlemi 2024-11-05 01:29:19 +01:00
parent b58a11f06a
commit b549f82ce5
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -118,8 +118,8 @@ async fn test_attach_after_leave() {
WorkspaceFixture::one("alice", "test-attach-after-leave") => |client, workspace| { WorkspaceFixture::one("alice", "test-attach-after-leave") => |client, workspace| {
client.leave_workspace(&workspace.id()); client.leave_workspace(&workspace.id());
// TODO this is very server specific! disconnect may be instant or caught with next // TODO this is very server specific! disconnect may be instant or caught with next
// keepalive, let's arbitrarily say that after 20 seconds we should have been disconnected // keepalive, let's arbitrarily say that after 30 seconds we should have been disconnected
tokio::time::sleep(std::time::Duration::from_secs(20)).await; tokio::time::sleep(std::time::Duration::from_secs(30)).await;
client.attach_workspace(&workspace.id()).await?; client.attach_workspace(&workspace.id()).await?;
Ok(()) Ok(())
} }