Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

test(engine): use coordinated writer in meeting fixture

Louis Beaumont47826aa9b068
diff --git a/crates/screenpipe-engine/src/meeting_watcher/audio_process/tests.rs b/crates/screenpipe-engine/src/meeting_watcher/audio_process/tests.rs
index 06db3391b..98120bc63 100644
--- a/crates/screenpipe-engine/src/meeting_watcher/audio_process/tests.rs
+++ b/crates/screenpipe-engine/src/meeting_watcher/audio_process/tests.rs
@@ -57,10 +57,12 @@ async fn setup_db() -> (tempfile::TempDir, DatabaseManager) {
let db = DatabaseManager::new(&path, Default::default())
.await
.unwrap();
+ let writer = db.coordinated_writer().lock().await.unwrap();
sqlx::migrate!("../screenpipe-db/src/migrations")
- .run(&db.pool)
+ .run(writer.pool())
.await
.unwrap();
+ drop(writer);
(dir, db)
}