Skip to content

Commit

Permalink
fix(templating): Fix merge error with test cases (#6405)
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Guenter <bruce@timber.io>
  • Loading branch information
Bruce Guenter authored Feb 9, 2021
1 parent f5574b5 commit 879c5f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ mod tests {
#[test]
fn render_metric_with_namespace() {
let template = Template::try_from("namespace={{namespace}} name={{name}}").unwrap();
let metric = sample_metric().with_namespace(Some("vector-test".into()));
let metric = sample_metric().with_namespace(Some("vector-test"));
assert_eq!(
Ok(Bytes::from("namespace=vector-test name=a-counter")),
template.render(&metric.into())
Expand All @@ -484,7 +484,7 @@ mod tests {

fn sample_metric() -> Metric {
Metric::new(
"a-counter".into(),
"a-counter",
MetricKind::Absolute,
MetricValue::Counter { value: 1.1 },
)
Expand Down

0 comments on commit 879c5f5

Please sign in to comment.