Skip to content

Commit

Permalink
fix: route and access token tests (#578)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
MasterPtato committed Apr 18, 2024
1 parent 38ed2da commit 4d8816a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/bolt-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions svc/api/traefik-provider/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,7 @@ async fn job_run() {
}

mod cdn_suite {

use super::Ctx;
use super::{Ctx, CDN_SLEEP_DURATION};
use proto::backend::{self, cdn::*, pkg::*};
use rivet_operation::prelude::*;

Expand Down Expand Up @@ -369,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| {
Expand Down
2 changes: 1 addition & 1 deletion svc/pkg/user/ops/resolve-access-token/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4d8816a

Please sign in to comment.