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 pipe test

Neptunec55f3237ad0e
diff --git a/screenpipe-core/tests/pipes_test.rs b/screenpipe-core/tests/pipes_test.rs
index 11ef9432b..879568b98 100644
--- a/screenpipe-core/tests/pipes_test.rs
+++ b/screenpipe-core/tests/pipes_test.rs
@@ -118,7 +118,7 @@ mod tests {
config: &str,
) -> PathBuf {
init();
- let pipe_dir = temp_dir.path().join(pipe_name);
+ let pipe_dir = temp_dir.path().join("pipes").join(pipe_name);
create_dir_all(&pipe_dir).await.unwrap();
let ts_file_path = pipe_dir.join("pipe.ts");
@@ -158,7 +158,7 @@ mod tests {
// Change the working directory to the pipe directory
std::env::set_current_dir(&pipe_dir).unwrap();
- let result = run_pipe(&pipe_dir.to_string_lossy().to_string(), screenpipe_dir).await;
+ let result = run_pipe("config_pipe", screenpipe_dir).await;
assert!(result.is_ok(), "Pipe execution failed: {:?}", result);
}