fix: add async_trait + exhaustive match for wrapup events in tests
This commit is contained in:
@@ -59,6 +59,8 @@ impl EventHandler for RecordingHandler {
|
|||||||
DomainEvent::BackfillFollower { .. } => "backfill_follower",
|
DomainEvent::BackfillFollower { .. } => "backfill_follower",
|
||||||
DomainEvent::FederationDeliveryRequested { .. } => "federation_delivery",
|
DomainEvent::FederationDeliveryRequested { .. } => "federation_delivery",
|
||||||
DomainEvent::WatchEventIngested { .. } => "watch_event_ingested",
|
DomainEvent::WatchEventIngested { .. } => "watch_event_ingested",
|
||||||
|
DomainEvent::WrapUpRequested { .. } => "wrapup_requested",
|
||||||
|
DomainEvent::WrapUpCompleted { .. } => "wrapup_completed",
|
||||||
};
|
};
|
||||||
self.calls.lock().unwrap().push(label);
|
self.calls.lock().unwrap().push(label);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
@@ -568,6 +568,7 @@ impl domain::ports::WebhookTokenRepository for Panic {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[async_trait::async_trait]
|
||||||
impl domain::ports::WrapUpStatsQuery for Panic {
|
impl domain::ports::WrapUpStatsQuery for Panic {
|
||||||
async fn get_reviews_with_profiles(
|
async fn get_reviews_with_profiles(
|
||||||
&self,
|
&self,
|
||||||
@@ -578,6 +579,7 @@ impl domain::ports::WrapUpStatsQuery for Panic {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[async_trait::async_trait]
|
||||||
impl domain::ports::WrapUpRepository for Panic {
|
impl domain::ports::WrapUpRepository for Panic {
|
||||||
async fn create(&self, _: &domain::models::wrapup::WrapUpRecord) -> Result<(), DomainError> {
|
async fn create(&self, _: &domain::models::wrapup::WrapUpRecord) -> Result<(), DomainError> {
|
||||||
panic!()
|
panic!()
|
||||||
|
|||||||
Reference in New Issue
Block a user