From ab2a06d2a1e63cdedfd06717114f128e1e9dc1a8 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 25 Jun 2025 14:39:13 -0600 Subject: test: start to extract builders --- tests/authorization/cedar_authorizer_test.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/authorization') diff --git a/tests/authorization/cedar_authorizer_test.rs b/tests/authorization/cedar_authorizer_test.rs index 2ed3dd68..4531da67 100644 --- a/tests/authorization/cedar_authorizer_test.rs +++ b/tests/authorization/cedar_authorizer_test.rs @@ -9,12 +9,12 @@ mod tests { #[test] fn test_cedar_authorizer_allows_valid_token() { let authorizer = CedarAuthorizer::new(); - let mut headers = HashMap::new(); - headers.insert( - "authorization".to_string(), - "Bearer valid-token".to_string(), - ); let request = create_request(|item: &mut HttpRequest| { + let mut headers = HashMap::new(); + headers.insert( + "authorization".to_string(), + "Bearer valid-token".to_string(), + ); item.headers = headers; }); -- cgit v1.2.3