summaryrefslogtreecommitdiff
path: root/src/boot/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/handlers')
-rw-r--r--src/boot/handlers/boot/test.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/boot/handlers/boot/test.rs b/src/boot/handlers/boot/test.rs
index f192478..0aef694 100644
--- a/src/boot/handlers/boot/test.rs
+++ b/src/boot/handlers/boot/test.rs
@@ -84,11 +84,6 @@ async fn includes_messages() {
async fn includes_vapid_key() {
let app = fixtures::scratch_app().await;
- app.vapid()
- .refresh_key(&fixtures::now())
- .await
- .expect("key rotation always succeeds");
-
let viewer = fixtures::identity::fictitious();
let response = super::handler(State(app.boot()), viewer)
.await
@@ -108,11 +103,6 @@ async fn includes_vapid_key() {
async fn includes_only_latest_vapid_key() {
let app = fixtures::scratch_app().await;
- app.vapid()
- .refresh_key(&fixtures::ancient())
- .await
- .expect("key rotation always succeeds");
-
let viewer = fixtures::identity::fictitious();
let response = super::handler(State(app.boot()), viewer.clone())
.await
@@ -128,6 +118,10 @@ async fn includes_only_latest_vapid_key() {
.expect("only one vapid key has been created");
app.vapid()
+ .revoke_key()
+ .await
+ .expect("key revocation always succeeds");
+ app.vapid()
.refresh_key(&fixtures::now())
.await
.expect("key rotation always succeeds");