From ad2b88f2675613827ceb2a1caa6e28bea70ccf86 Mon Sep 17 00:00:00 2001 From: flo-ride <43076999+flo-ride@users.noreply.github.com> Date: Sat, 16 Nov 2024 00:07:18 +0100 Subject: [PATCH] fix(tests): Fix instant cookie deletion on tests --- tests/basics_tests.rs | 1 + tests/utils/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/basics_tests.rs b/tests/basics_tests.rs index 6988852..0c0aa9a 100644 --- a/tests/basics_tests.rs +++ b/tests/basics_tests.rs @@ -57,6 +57,7 @@ async fn basic_login_oidc() { arguments.openid_issuer = issuer.clone(); arguments.openid_client_id = basic_client.client_id; arguments.openid_client_secret = basic_client.client_secret; + arguments.openid_token_duration = std::time::Duration::from_secs(360); arguments.backend_url = "http://localhost:3000".to_string(); arguments.frontend_url = "http://localhost:5173".to_string(); arguments.database_url = db_url.to_string(); diff --git a/tests/utils/mod.rs b/tests/utils/mod.rs index 83870ab..59fd00e 100644 --- a/tests/utils/mod.rs +++ b/tests/utils/mod.rs @@ -57,6 +57,7 @@ pub async fn create_basic_session( arguments.openid_issuer = issuer.clone(); arguments.openid_client_id = realm.clients[0].client_id.clone(); arguments.openid_client_secret = realm.clients[0].client_secret.clone(); + arguments.openid_token_duration = std::time::Duration::from_secs(360); arguments.backend_url = "http://localhost:3000".to_string(); arguments.frontend_url = "http://localhost:5173".to_string(); arguments.database_url = db_url.to_string();