mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
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:
parent
0a9f9c6612
commit
03468d7568
1 changed files with 3 additions and 2 deletions
|
|
@ -329,7 +329,8 @@ mod tests {
|
||||||
let req = test::TestRequest::post().uri("/api/sync").to_request();
|
let req = test::TestRequest::post().uri("/api/sync").to_request();
|
||||||
let resp = test::call_service(&app, req).await;
|
let resp = test::call_service(&app, req).await;
|
||||||
|
|
||||||
// Expecting failure because `sudo date` won't work here.
|
// In a test environment, `trigger_sync` is expected to succeed without
|
||||||
assert_eq!(resp.status(), 500); // Internal Server Error
|
// actually running a command.
|
||||||
|
assert_eq!(resp.status(), 200); // OK
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue