From 7a4ed41b272466581511bf296f0791aef48fbe1a Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Wed, 17 Feb 2021 12:32:29 +0100 Subject: [PATCH] Fix test after switching to pretty JSON output --- tests/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cli.rs b/tests/cli.rs index 4060ab0..6b98c5d 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -233,7 +233,7 @@ mod cli { let expected = r##"{"total":11,"successful":11,"failures":0,"timeouts":0,"redirects":0,"excludes":0,"errors":0,"fail_map":{}}"##; let output = fs::read_to_string(&outfile)?; - assert_eq!(output, expected); + assert_eq!(output.split_whitespace().collect::(), expected); fs::remove_file(outfile)?; Ok(()) }