From 4761e85c16e91b9ce9dde7db8aa8155571ac88b4 Mon Sep 17 00:00:00 2001 From: MasterPtato Date: Thu, 21 Mar 2024 17:14:11 +0000 Subject: [PATCH] fix: route and access token tests --- .github/workflows/bolt-test.yaml | 4 ++++ svc/api/route/tests/basic.rs | 2 ++ svc/pkg/user/ops/resolve-access-token/tests/integration.rs | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bolt-test.yaml b/.github/workflows/bolt-test.yaml index 4ba7014e53..f5b5d14c5a 100644 --- a/.github/workflows/bolt-test.yaml +++ b/.github/workflows/bolt-test.yaml @@ -37,6 +37,10 @@ jobs: - name: Bolt Test run: nix-shell --pure --run "bolt test" + - name: Tmate + if: failure() + uses: mxschmitt/action-tmate@v3 + - name: K3D Cleanup if: always() run: nix-shell --pure --run "k3d cluster delete rivet-ci" diff --git a/svc/api/route/tests/basic.rs b/svc/api/route/tests/basic.rs index acc31d04f7..e415693e3d 100644 --- a/svc/api/route/tests/basic.rs +++ b/svc/api/route/tests/basic.rs @@ -368,6 +368,8 @@ mod cdn_suite { .await .unwrap(); + tokio::time::sleep(CDN_SLEEP_DURATION).await; + // Test HTML { let res = test_cdn_path(&version, "/index.html", |req| { diff --git a/svc/pkg/user/ops/resolve-access-token/tests/integration.rs b/svc/pkg/user/ops/resolve-access-token/tests/integration.rs index 532805b00b..1f1ac9dc56 100644 --- a/svc/pkg/user/ops/resolve-access-token/tests/integration.rs +++ b/svc/pkg/user/ops/resolve-access-token/tests/integration.rs @@ -9,7 +9,7 @@ async fn empty(ctx: TestCtx) { .await .unwrap(); - let name = "foo".to_string(); + let name = util::faker::ident(); op!([ctx] user_identity_create { user_id: user_res.user_id, identity: Some(backend::user_identity::Identity {