Skip to content

Commit

Permalink
fix test (golemfactory#3037)
Browse files Browse the repository at this point in the history
* fix randomly failing test by using sort
  • Loading branch information
staszek-krotki authored Feb 1, 2024
1 parent abab878 commit 2dbfcd4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions exe-unit/components/gsb-http-proxy/src/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,10 @@ mod tests {
fn test_headers_new_not_filtered() {
let hm = mock_headers();

let result = Headers::new().filter(&hm);
let mut result = Headers::new().filter(&hm).into_keys().collect::<Vec<_>>();
result.sort();

assert_eq!(
result.into_keys().collect::<Vec<_>>(),
vec!["header-1", "host"]
);
assert_eq!(result, vec!["header-1", "host"]);
}

#[test]
Expand Down

0 comments on commit 2dbfcd4

Please sign in to comment.