Skip to content

Commit dbc3217

Browse files
committed
Update commandeer snapshot
1 parent 6efdfe1 commit dbc3217

File tree

6 files changed

+1530
-1056
lines changed

6 files changed

+1530
-1056
lines changed

lustrefs-exporter/src/routes.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,12 @@ mod tests {
321321

322322
let response = app.oneshot(request).await.unwrap();
323323

324-
assert!(response.status().is_success())
324+
assert!(response.status().is_success());
325+
326+
let body = to_bytes(response.into_body(), usize::MAX).await.unwrap();
327+
let original_body_str = std::str::from_utf8(&body).unwrap();
328+
329+
insta::assert_snapshot!(original_body_str);
325330
}
326331

327332
#[commandeer(Replay, "lctl", "lnetctl")]
@@ -459,7 +464,7 @@ mod tests {
459464
#[commandeer(Replay, "lctl", "lnetctl")]
460465
#[tokio::test]
461466
#[serial]
462-
async fn test_jobstats_with_stderr_output() -> Result<(), Box<dyn std::error::Error>> {
467+
async fn test_jobstats_with_stderr_output() {
463468
let (request, app) = get_app();
464469

465470
let resp = app.oneshot(request).await.unwrap();
@@ -468,7 +473,5 @@ mod tests {
468473
let original_body_str = std::str::from_utf8(&body).unwrap();
469474

470475
insta::assert_snapshot!(original_body_str);
471-
472-
Ok(())
473476
}
474477
}

0 commit comments

Comments
 (0)