Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wperron committed Dec 7, 2022
1 parent 39ed984 commit 47f9da5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions opentelemetry-api/src/baggage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use std::collections::{hash_map, HashMap};
use std::fmt;
use std::iter::FromIterator;
use urlencoding::encode;
// use urlencoding::encode;

static DEFAULT_BAGGAGE: Lazy<Baggage> = Lazy::new(Baggage::default);

Expand Down Expand Up @@ -562,10 +561,7 @@ mod tests {
let mut b = Baggage::default();
b.insert_with_metadata("foo", StringValue::from("1"), "red;state=on");
b.insert_with_metadata("bar", StringValue::from("2"), "yellow");
let stringified = b.to_string();
assert!(
stringified == "bar=2;yellow,foo=1;red;state=on"
|| stringified == "foo=1;red;state=on,bar=2;yellow"
)
assert!(b.to_string().contains("bar=2;yellow"));
assert!(b.to_string().contains("foo=1;red;state=on"));
}
}

0 comments on commit 47f9da5

Please sign in to comment.