Skip to content

Commit

Permalink
make otel test deterministic
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
  • Loading branch information
jprendes authored Jan 30, 2025
1 parent 508fc35 commit 56bfd51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/containerd-shim-wasm/src/sandbox/shim/otel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ mod tests {

let extractor = MetadataExtractor(&metadata);
assert_eq!(extractor.get("key"), Some("value"));
assert_eq!(extractor.keys(), vec!["key", "key2"]);
let mut keys = extractor.keys();
keys.sort();
assert_eq!(keys, vec!["key", "key2"]);

assert_eq!(extractor.get("key2"), Some("value2"));
}
Expand Down

0 comments on commit 56bfd51

Please sign in to comment.