Skip to content

Commit 992ce7a

Browse files
committed
Properly ignore getting new cookies after a logout in tests
1 parent fe77878 commit 992ce7a

File tree

1 file changed

+4
-2
lines changed
  • nts-pool-management/src/common

1 file changed

+4
-2
lines changed

nts-pool-management/src/common/auth.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,8 @@ mod tests {
748748
.unwrap();
749749
assert_eq!(session.user.id, env.user.id);
750750

751-
logout(env.user.id, &env.pool, CookieJar::new())
751+
// ignore that we get a new cookie and return the previous one again
752+
let _ = logout(env.user.id, &env.pool, CookieJar::new())
752753
.await
753754
.unwrap();
754755

@@ -793,7 +794,8 @@ mod tests {
793794
.unwrap();
794795
assert_eq!(session.user.id, env.user.id);
795796

796-
logout(env.admin.id, &env.pool, CookieJar::new())
797+
// ignore that we get a new cookie and send the previous one again
798+
let _ = logout(env.admin.id, &env.pool, CookieJar::new())
797799
.await
798800
.unwrap();
799801

0 commit comments

Comments
 (0)