Skip to content

Commit

Permalink
Fix stray bracket in frame display
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai committed Jan 22, 2024
1 parent 506eb62 commit c918c6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions shotover-proxy/tests/transforms/tee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ async fn test_log_with_mismatch() {
.with_target("shotover::transforms::tee")
.with_message(
r#"Tee mismatch:
chain response: ["Redis BulkString(b\"42\"))", "Redis BulkString(b\"42\"))"]
tee response: ["Redis BulkString(b\"41\"))", "Redis BulkString(b\"41\"))"]"#,
chain response: ["Redis BulkString(b\"42\")", "Redis BulkString(b\"42\")"]
tee response: ["Redis BulkString(b\"41\")", "Redis BulkString(b\"41\")"]"#,
),
EventMatcher::new()
.with_level(Level::Warn)
.with_target("shotover::transforms::tee")
.with_message(
r#"Tee mismatch:
chain response: ["Redis BulkString(b\"42\"))"]
tee response: ["Redis BulkString(b\"41\"))"]"#,
chain response: ["Redis BulkString(b\"42\")"]
tee response: ["Redis BulkString(b\"41\")"]"#,
),
])
.await;
Expand Down
4 changes: 2 additions & 2 deletions shotover/src/frame/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ impl Display for Frame {
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
match self {
Frame::Cassandra(frame) => write!(f, "Cassandra {}", frame),
Frame::Redis(frame) => write!(f, "Redis {:?})", frame),
Frame::Kafka(frame) => write!(f, "Kafka {})", frame),
Frame::Redis(frame) => write!(f, "Redis {:?}", frame),
Frame::Kafka(frame) => write!(f, "Kafka {}", frame),
Frame::Dummy => write!(f, "Shotover internal dummy message"),
Frame::OpenSearch(frame) => write!(f, "OpenSearch: {:?}", frame),
}
Expand Down

0 comments on commit c918c6a

Please sign in to comment.