[pmg-devel] [PATCH pmg-log-tracker 2/3] fix wrong order of arguments
Mira Limbeck
m.limbeck at proxmox.com
Thu Apr 2 16:57:13 CEST 2020
This fixes the output in the case of a failed assert. Exptected and
Command were swapped.
Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
---
tests/tests_before_queue.rs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/tests_before_queue.rs b/tests/tests_before_queue.rs
index a1ea89b..2c64aa6 100644
--- a/tests/tests_before_queue.rs
+++ b/tests/tests_before_queue.rs
@@ -21,7 +21,7 @@ fn before_queue_start_end_time_string() {
let expected_output = BufReader::new(&expected_file);
let output_reader = BufReader::new(&output.stdout[..]);
- utils::compare_output(expected_output, output_reader);
+ utils::compare_output(output_reader, expected_output);
}
#[test]
@@ -42,7 +42,7 @@ fn before_queue_start_end_timestamp() {
let expected_output = BufReader::new(&expected_file);
let output_reader = BufReader::new(&output.stdout[..]);
- utils::compare_output(expected_output, output_reader);
+ utils::compare_output(output_reader, expected_output);
}
#[test]
@@ -88,7 +88,7 @@ fn before_queue_host() {
let expected_output = BufReader::new(&expected_file);
let output_reader = BufReader::new(&output.stdout[..]);
- utils::compare_output(expected_output, output_reader);
+ utils::compare_output(output_reader, expected_output);
}
#[test]
@@ -111,7 +111,7 @@ fn before_queue_search_string() {
let expected_output = BufReader::new(&expected_file);
let output_reader = BufReader::new(&output.stdout[..]);
- utils::compare_output(expected_output, output_reader);
+ utils::compare_output(output_reader, expected_output);
}
#[test]
@@ -134,5 +134,5 @@ fn before_queue_exclude_greylist_ndr() {
let expected_output = BufReader::new(&expected_file);
let output_reader = BufReader::new(&output.stdout[..]);
- utils::compare_output(expected_output, output_reader);
+ utils::compare_output(output_reader, expected_output);
}
--
2.20.1
More information about the pmg-devel
mailing list