mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-24 08:04:48 +01:00
test: even more time to disconnect?
This commit is contained in:
parent
b58a11f06a
commit
b549f82ce5
1 changed files with 2 additions and 2 deletions
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue