From 5e740ba2a1497f5ed9e473504dadc0b6a5892661 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Tue, 2 Jun 2026 22:14:50 +0200 Subject: [PATCH] fix: add async_trait + exhaustive match for wrapup events in tests --- crates/application/src/tests/worker.rs | 2 ++ crates/presentation/src/tests/extractors.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crates/application/src/tests/worker.rs b/crates/application/src/tests/worker.rs index c6a1a9d..e0f4bca 100644 --- a/crates/application/src/tests/worker.rs +++ b/crates/application/src/tests/worker.rs @@ -59,6 +59,8 @@ impl EventHandler for RecordingHandler { DomainEvent::BackfillFollower { .. } => "backfill_follower", DomainEvent::FederationDeliveryRequested { .. } => "federation_delivery", DomainEvent::WatchEventIngested { .. } => "watch_event_ingested", + DomainEvent::WrapUpRequested { .. } => "wrapup_requested", + DomainEvent::WrapUpCompleted { .. } => "wrapup_completed", }; self.calls.lock().unwrap().push(label); Ok(()) diff --git a/crates/presentation/src/tests/extractors.rs b/crates/presentation/src/tests/extractors.rs index 938ffd7..38d54a3 100644 --- a/crates/presentation/src/tests/extractors.rs +++ b/crates/presentation/src/tests/extractors.rs @@ -568,6 +568,7 @@ impl domain::ports::WebhookTokenRepository for Panic { } } +#[async_trait::async_trait] impl domain::ports::WrapUpStatsQuery for Panic { async fn get_reviews_with_profiles( &self, @@ -578,6 +579,7 @@ impl domain::ports::WrapUpStatsQuery for Panic { } } +#[async_trait::async_trait] impl domain::ports::WrapUpRepository for Panic { async fn create(&self, _: &domain::models::wrapup::WrapUpRecord) -> Result<(), DomainError> { panic!()