Insert random delays when sending and receiving websocket messages in tests

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-01-24 14:38:24 -08:00
parent d241ab6370
commit 2b8685c1a2
6 changed files with 53 additions and 21 deletions

View file

@ -8,7 +8,7 @@ version = "0.1.0"
path = "src/rpc.rs"
[features]
test-support = []
test-support = ["gpui"]
[dependencies]
anyhow = "1.0"
@ -25,6 +25,7 @@ rsa = "0.4"
serde = { version = "1", features = ["derive"] }
smol-timeout = "0.6"
zstd = "0.9"
gpui = { path = "../gpui", features = ["test-support"], optional = true }
[build-dependencies]
prost-build = "0.8"