test: fix failing manual_sync test assertion

Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
This commit is contained in:
Chaos Rogers 2025-07-21 18:41:46 +01:00
parent 0a9f9c6612
commit 03468d7568

View file

@ -329,7 +329,8 @@ mod tests {
let req = test::TestRequest::post().uri("/api/sync").to_request();
let resp = test::call_service(&app, req).await;
// Expecting failure because `sudo date` won't work here.
assert_eq!(resp.status(), 500); // Internal Server Error
// In a test environment, `trigger_sync` is expected to succeed without
// actually running a command.
assert_eq!(resp.status(), 200); // OK
}
}