Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 2, 2024
1 parent 0cf2631 commit 72e90e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions screenpipe-server/src/bin/screenpipe-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,16 @@ async fn main() -> anyhow::Result<()> {

// Add warning for cloud arguments
if cli.cloud_audio_on || cli.cloud_ocr_on {
eprintln!(
println!(
"{}",
"WARNING: You are using cloud now. Make sure to understand the data privacy risks."
.bright_yellow()
);
} else {
eprintln!(
println!(
"{}",
"You are using local processing. All your data stays on your computer.".bright_yellow()
"You are using local processing. All your data stays on your computer.\n"
.bright_yellow()
);
}

Expand Down
8 changes: 4 additions & 4 deletions screenpipe-server/tests/endpoint_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ mod tests {

// Insert some recent data
let _ = db.insert_video_chunk("test_video.mp4").await.unwrap();
let frame_id = db.insert_frame().await.unwrap();
let frame_id = db.insert_frame("foo").await.unwrap();
let _ = db
.insert_ocr_text(frame_id, "Test OCR", "{}", "{}", "{}")
.insert_ocr_text(frame_id, "Test OCR", "{}", "{}", "{}", "foo")
.await
.unwrap();
let audio_chunk_id = db.insert_audio_chunk("test_audio.wav").await.unwrap();
Expand Down Expand Up @@ -142,9 +142,9 @@ mod tests {
// Insert some stale data (more than 60 seconds old)
let stale_time = Utc::now() - Duration::seconds(61);
let _ = db.insert_video_chunk("test_video.mp4").await.unwrap();
let frame_id = db.insert_frame().await.unwrap();
let frame_id = db.insert_frame("foo").await.unwrap();
let _ = db
.insert_ocr_text(frame_id, "Test OCR", "{}", "{}", "{}")
.insert_ocr_text(frame_id, "Test OCR", "{}", "{}", "{}", "foo")
.await
.unwrap();
let audio_chunk_id = db.insert_audio_chunk("test_audio.wav").await.unwrap();
Expand Down

0 comments on commit 72e90e7

Please sign in to comment.