diff options
Diffstat (limited to 'src/event')
| -rw-r--r-- | src/event/handlers/stream/test/vapid.rs | 6 | ||||
| -rw-r--r-- | src/event/mod.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/event/handlers/stream/test/vapid.rs b/src/event/handlers/stream/test/vapid.rs index dbc3929..4d7f2dd 100644 --- a/src/event/handlers/stream/test/vapid.rs +++ b/src/event/handlers/stream/test/vapid.rs @@ -7,7 +7,7 @@ use crate::test::{fixtures, fixtures::future::Expect as _}; #[tokio::test] async fn live_vapid_key_changes() { // Set up the context - let app = fixtures::scratch_app().await; + let app = fixtures::scratch_app_without_vapid().await; let resume_point = fixtures::boot::resume_point(&app).await; // Subscribe to events @@ -42,7 +42,7 @@ async fn live_vapid_key_changes() { #[tokio::test] async fn stored_vapid_key_changes() { // Set up the context - let app = fixtures::scratch_app().await; + let app = fixtures::scratch_app_without_vapid().await; let resume_point = fixtures::boot::resume_point(&app).await; // Rotate the VAPID key @@ -77,7 +77,7 @@ async fn stored_vapid_key_changes() { #[tokio::test] async fn no_past_vapid_key_changes() { // Set up the context - let app = fixtures::scratch_app().await; + let app = fixtures::scratch_app_without_vapid().await; // Rotate the VAPID key diff --git a/src/event/mod.rs b/src/event/mod.rs index 83b0ce7..cb7c969 100644 --- a/src/event/mod.rs +++ b/src/event/mod.rs @@ -29,7 +29,7 @@ pub enum Event { // above - though heartbeat events contain only a type field and none of the other event gubbins. // They don't have to participate in sequence numbering, aren't generated from stored data, and // generally Are Weird. -#[derive(serde::Serialize)] +#[derive(Eq, PartialEq, serde::Serialize)] #[serde(tag = "type", rename_all = "snake_case")] pub enum Heartbeat { Heartbeat, |
