summaryrefslogtreecommitdiff
path: root/tests/integration/concurrent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/concurrent.rs')
-rw-r--r--tests/integration/concurrent.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/integration/concurrent.rs b/tests/integration/concurrent.rs
index e7f2b64..da09ac9 100644
--- a/tests/integration/concurrent.rs
+++ b/tests/integration/concurrent.rs
@@ -11,6 +11,8 @@ async fn concurrent_build_gets_queued() {
.state
.build_scheduler
.in_progress
+ .lock()
+ .unwrap()
.insert("my-site".to_owned());
let resp = TestServer::client()
@@ -37,11 +39,15 @@ async fn concurrent_build_queue_collapse() {
.state
.build_scheduler
.in_progress
+ .lock()
+ .unwrap()
.insert("my-site".to_owned());
server
.state
.build_scheduler
.queued
+ .lock()
+ .unwrap()
.insert("my-site".to_owned());
// Third request should collapse (202, no body)
@@ -97,6 +103,8 @@ async fn build_in_progress_checked_after_auth() {
.state
.build_scheduler
.in_progress
+ .lock()
+ .unwrap()
.insert("my-site".to_owned());
// Request with wrong token should return 401 (auth checked before build status)