mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-27 13:00:39 +00:00
Add missing cfg's for signed cookie tests
This commit is contained in:
parent
36f24990c8
commit
944f388ae0
@ -302,9 +302,15 @@ mod tests {
|
||||
}
|
||||
|
||||
cookie_test!(plaintext_cookies, CookieJar);
|
||||
|
||||
#[cfg(feature = "cookie-signed")]
|
||||
cookie_test!(signed_cookies, SignedCookieJar);
|
||||
#[cfg(feature = "cookie-signed")]
|
||||
cookie_test!(signed_cookies_with_custom_key, SignedCookieJar<CustomKey>);
|
||||
|
||||
#[cfg(feature = "cookie-private")]
|
||||
cookie_test!(private_cookies, PrivateCookieJar);
|
||||
#[cfg(feature = "cookie-private")]
|
||||
cookie_test!(private_cookies_with_custom_key, PrivateCookieJar<CustomKey>);
|
||||
|
||||
#[derive(Clone)]
|
||||
@ -334,6 +340,7 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "cookie-signed")]
|
||||
#[tokio::test]
|
||||
async fn signed_cannot_access_invalid_cookies() {
|
||||
async fn get_cookie(jar: SignedCookieJar) -> impl IntoResponse {
|
||||
|
Loading…
x
Reference in New Issue
Block a user