Fix a flaky test
This commit is contained in:
parent
6dc099d128
commit
3b3b63cef5
1 changed files with 5 additions and 2 deletions
|
@ -1492,8 +1492,11 @@ mod test {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let zip = writer.finish().unwrap();
|
let zip = writer.finish().unwrap();
|
||||||
let mut reader = ZipArchive::new(zip).unwrap();
|
let mut reader = ZipArchive::new(zip).unwrap();
|
||||||
let file_names: Vec<&str> = reader.file_names().collect();
|
let mut file_names: Vec<&str> = reader.file_names().collect();
|
||||||
assert_eq!(file_names, vec![RT_TEST_FILENAME, SECOND_FILENAME]);
|
file_names.sort();
|
||||||
|
let mut expected_file_names = vec![RT_TEST_FILENAME, SECOND_FILENAME];
|
||||||
|
expected_file_names.sort();
|
||||||
|
assert_eq!(file_names, expected_file_names);
|
||||||
let mut first_file_content = String::new();
|
let mut first_file_content = String::new();
|
||||||
reader
|
reader
|
||||||
.by_name(RT_TEST_FILENAME)
|
.by_name(RT_TEST_FILENAME)
|
||||||
|
|
Loading…
Add table
Reference in a new issue