Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Dec 3, 2024
1 parent 9a31cc3 commit 8e5af00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void onClose(Status status, Metadata trailers) {
// TODO: Not sure if we should swallow the error here. We are pre-emptively swapping
// channels if the new
// channel is bad.
LOG.log(Level.WARNING, "failed to prime channel", e);
LOG.log(Level.WARNING, "Failed to prime channel", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public PingAndWarmResponse apply(PingAndWarmRequest pingAndWarmRequest) {

assertThat(logHandler.logs).hasSize(1);
for (LogRecord log : logHandler.logs) {
assertThat(log.getMessage()).contains("FAILED_PRECONDITION");
assertThat(log.getThrown().getMessage()).contains("FAILED_PRECONDITION");
}
}

Expand All @@ -148,7 +148,7 @@ public void testChannelErrorsAreLogged() {

assertThat(logHandler.logs).hasSize(1);
for (LogRecord log : logHandler.logs) {
assertThat(log.getMessage()).contains("UnsupportedOperationException");
assertThat(log.getThrown()).isInstanceOf(UnsupportedOperationException.class);
}
}

Expand Down

0 comments on commit 8e5af00

Please sign in to comment.