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

fix(ci): compile error in pi test + rustfmt for calendar_speaker_id

Louis Beaumontd437204dbec0
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rs
index 5e5e310a7..8809766d2 100644
--- a/crates/screenpipe-core/src/agents/pi.rs
+++ b/crates/screenpipe-core/src/agents/pi.rs
@@ -1851,8 +1851,8 @@ mod tests {
assert_eq!(lines[1], "OK");
}
- #[test]
- fn test_ensure_pi_config_adds_ollama_provider() {
+ #[tokio::test]
+ async fn test_ensure_pi_config_adds_ollama_provider() {
// Call ensure_pi_config with ollama provider info
PiExecutor::ensure_pi_config(
None,
@@ -1861,6 +1861,7 @@ mod tests {
Some("qwen3:8b"),
Some("http://localhost:11434/v1"),
)
+ .await
.expect("ensure_pi_config should succeed");
// Read models.json and verify ollama provider was added
diff --git a/crates/screenpipe-engine/src/calendar_speaker_id.rs b/crates/screenpipe-engine/src/calendar_speaker_id.rs
index 9f8ec79f2..a875b3f45 100644
--- a/crates/screenpipe-engine/src/calendar_speaker_id.rs
+++ b/crates/screenpipe-engine/src/calendar_speaker_id.rs
@@ -1190,10 +1190,7 @@ mod tests {
deduplicate_speaker_by_name(&db, id_b, "[email protected]").await;
// After merge: "[email protected]" entry should be gone
- let email_speaker = db
- .find_speaker_by_name("[email protected]")
- .await
- .unwrap();
+ let email_speaker = db.find_speaker_by_name("[email protected]").await.unwrap();
assert!(
email_speaker.is_none(),
"[email protected] should have been merged away"
@@ -1223,10 +1220,7 @@ mod tests {
deduplicate_speaker_by_name(&db, id_b, "[email protected]").await;
// Both should still exist independently
- let email_speaker = db
- .find_speaker_by_name("[email protected]")
- .await
- .unwrap();
+ let email_speaker = db.find_speaker_by_name("[email protected]").await.unwrap();
assert!(
email_speaker.is_some(),
"different-voice speakers must not be merged"