Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(call): restore call import tests after the provider and event merges (#8467)
Wolf Mermelsteincc1e070eace5
diff --git a/crates/call/src/domain/imports/test.rs b/crates/call/src/domain/imports/test.rsindex d733d5d322..a7f7570850 100644--- a/crates/call/src/domain/imports/test.rs+++ b/crates/call/src/domain/imports/test.rs@@ -1,6 +1,6 @@use super::*;use crate::domain::events::CallTopicEvent;-use crate::domain::records::CallProvider;+use crate::domain::records::{CallProvider, ExternalCallId};use macro_event_broker::{EventBrokerError, MacroEvent};use std::sync::{Arc, Mutex};@@ -55,7 +55,7 @@ fn snapshot(namespace: &str) -> ImportedCall {namespace: namespace.into(),provider: CallProvider::Granola,object_type: "note".into(),- external_id: "not_123456789abcde".to_owned().try_into().unwrap(),+ external_id: ExternalCallId("not_123456789abcde".to_owned()),external_url: None,external_updated_at: None,synced_at: None,diff --git a/crates/call/src/outbound/pg_imported_call_repo/test.rs b/crates/call/src/outbound/pg_imported_call_repo/test.rsindex b036d33b99..4dfac48a0b 100644--- a/crates/call/src/outbound/pg_imported_call_repo/test.rs+++ b/crates/call/src/outbound/pg_imported_call_repo/test.rs@@ -105,7 +105,10 @@ async fn imports_are_private_idempotent_owner_scoped_and_revision_ordered(pool:fixtures(path = "../../../fixtures", scripts("import_users")))]async fn imports_require_a_complete_source_identity(pool: PgPool) {- let service = CallImportServiceImpl(PgImportedCallRepository::new(pool));+ let service = CallImportServiceImpl(+ PgImportedCallRepository::new(pool),+ macro_event_broker::NoopMacroEventBroker,+ );let mut call = snapshot("import-a", Utc::now());call.source.external_id = ExternalCallId(String::new());assert!(service.ingest(call).await.is_err());