fix: add async_trait + exhaustive match for wrapup events in tests

This commit is contained in:
2026-06-02 22:14:50 +02:00
parent 7ef8912d69
commit 5e740ba2a1
2 changed files with 4 additions and 0 deletions

View File

@@ -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(())

View File

@@ -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!()