test(rlm): tolerate windows python line endings
This commit is contained in:
@@ -1084,14 +1084,11 @@ mod tests {
|
||||
)
|
||||
.await
|
||||
.expect("execute");
|
||||
assert!(round.stdout.contains("36 4"), "{}", round.stdout);
|
||||
assert!(round.stdout.contains("beta needle"), "{}", round.stdout);
|
||||
assert!(
|
||||
round.stdout.contains("beta needle\ngamma needle"),
|
||||
"{}",
|
||||
round.stdout
|
||||
);
|
||||
assert!(round.stdout.contains("1 needle 11"), "{}", round.stdout);
|
||||
let stdout = round.stdout.replace("\r\n", "\n");
|
||||
assert!(stdout.contains("36 4"), "{stdout}");
|
||||
assert!(stdout.contains("beta needle"), "{stdout}");
|
||||
assert!(stdout.contains("beta needle\ngamma needle"), "{stdout}");
|
||||
assert!(stdout.contains("1 needle 11"), "{stdout}");
|
||||
rt.shutdown().await;
|
||||
}
|
||||
|
||||
|
||||
@@ -533,7 +533,11 @@ mod tests {
|
||||
.await
|
||||
.expect("eval");
|
||||
let eval_json: Value = serde_json::from_str(&eval.content).expect("eval json");
|
||||
assert_eq!(eval_json["stdout_preview"], "ok\n");
|
||||
let stdout_preview = eval_json["stdout_preview"]
|
||||
.as_str()
|
||||
.expect("stdout_preview")
|
||||
.replace("\r\n", "\n");
|
||||
assert_eq!(stdout_preview, "ok\n");
|
||||
|
||||
let close = RlmCloseTool
|
||||
.execute(json!({"name": "sample"}), &ctx)
|
||||
|
||||
Reference in New Issue
Block a user