diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-02-15 21:27:00 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-02-15 21:27:00 +0100 |
| commit | ce0dbf6b249956700c6a1705bf4ad85a09d53e8c (patch) | |
| tree | d7c3236807cfbf75d7f3a355eb5df5a5e2cc4ad7 /tests/integration/concurrent.rs | |
| parent | 064a1d01c5c14f5ecc032fa9b8346a4a88b893f6 (diff) | |
Switch, cleanup, and status CLI commands. Persistent build state via
state.json. Post-deploy hooks on success and failure with
WITRYNA_BUILD_STATUS. Dependency diet (axum→tiny_http, clap→argh,
tracing→log). Drop built-in rate limiting. Nix flake with NixOS module.
Arch Linux PKGBUILD. Centralized version management.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'tests/integration/concurrent.rs')
| -rw-r--r-- | tests/integration/concurrent.rs | 8 |
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) |
