mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-24 13:54:53 +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| {
|
||||
client.leave_workspace(&workspace.id());
|
||||
// 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
|
||||
tokio::time::sleep(std::time::Duration::from_secs(20)).await;
|
||||
// keepalive, let's arbitrarily say that after 30 seconds we should have been disconnected
|
||||
tokio::time::sleep(std::time::Duration::from_secs(30)).await;
|
||||
client.attach_workspace(&workspace.id()).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue