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: update test files for new SCServer::new signature and extract_frame_from_video

Louis Beaumont7bd1357d1bdc
diff --git a/crates/screenpipe-server/tests/endpoint_test.rs b/crates/screenpipe-server/tests/endpoint_test.rs
index 38958482a..feebd11ce 100644
--- a/crates/screenpipe-server/tests/endpoint_test.rs
+++ b/crates/screenpipe-server/tests/endpoint_test.rs
@@ -46,6 +46,7 @@ mod tests {
false,
audio_manager,
false, // use_pii_removal
+ "balanced".to_string(),
);
let router = app.create_router(true).await;
diff --git a/crates/screenpipe-server/tests/first_frames_test.rs b/crates/screenpipe-server/tests/first_frames_test.rs
index ecce8047b..ee6651010 100644
--- a/crates/screenpipe-server/tests/first_frames_test.rs
+++ b/crates/screenpipe-server/tests/first_frames_test.rs
@@ -94,7 +94,7 @@ async fn test_first_frames_loading() -> Result<()> {
// Try to extract the frame
match tokio::time::timeout(
std::time::Duration::from_secs(10),
- extract_frame_from_video(file_path, *offset_index),
+ extract_frame_from_video(file_path, *offset_index, "2"),
)
.await
{
@@ -251,7 +251,7 @@ async fn test_concurrent_frame_loading() -> Result<()> {
tokio::spawn(async move {
let result = tokio::time::timeout(
std::time::Duration::from_secs(10),
- extract_frame_from_video(&file_path, offset_index),
+ extract_frame_from_video(&file_path, offset_index, "2"),
)
.await;
(frame_id, result)
diff --git a/crates/screenpipe-server/tests/tags_test.rs b/crates/screenpipe-server/tests/tags_test.rs
index add437e81..b203e9df7 100644
--- a/crates/screenpipe-server/tests/tags_test.rs
+++ b/crates/screenpipe-server/tests/tags_test.rs
@@ -36,6 +36,7 @@ async fn setup_test_app() -> (Router, Arc<DatabaseManager>) {
false,
audio_manager,
false, // use_pii_removal
+ "balanced".to_string(),
);
let router = app.create_router(true).await;