From 414231d8c6fe867929815053aff7494405c952ae Mon Sep 17 00:00:00 2001 From: Bryan Brooks Date: Sun, 14 Dec 2025 10:32:42 -0600 Subject: [PATCH] Fix test compilation: correct 32-byte secret length and remove unused imports - Fix TEST_SECRET and TEST_SECRET_2 to be exactly 32 bytes - Remove unused imports in sqlite.rs tests --- src/session/sqlite.rs | 2 -- src/token.rs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/session/sqlite.rs b/src/session/sqlite.rs index 5126066..b088af2 100644 --- a/src/session/sqlite.rs +++ b/src/session/sqlite.rs @@ -248,8 +248,6 @@ impl SessionStore for SqliteSessionStore { #[cfg(test)] mod tests { use super::*; - use crate::token::TokenPayload; - use std::collections::HashMap; fn create_test_session() -> Session { let now = chrono::Utc::now().timestamp(); diff --git a/src/token.rs b/src/token.rs index bd46279..2f4692b 100644 --- a/src/token.rs +++ b/src/token.rs @@ -341,8 +341,8 @@ mod tests { } // Test secret that meets the 32-byte minimum requirement - const TEST_SECRET: &[u8; 32] = b"test-secret-key-32bytes-long!!!"; - const TEST_SECRET_2: &[u8; 32] = b"another-secret-32-bytes-long!!!"; + const TEST_SECRET: &[u8; 32] = b"test-secret-key-32bytes-long!!!!"; + const TEST_SECRET_2: &[u8; 32] = b"another-secret-32-bytes-long!!!!"; #[test] fn test_sign_and_verify() { -- knotmirror 0.0.1