Skip to content

Commit

Permalink
feat: fix HealthCheckTest
Browse files Browse the repository at this point in the history
  • Loading branch information
NiccoMlt committed Nov 20, 2024
1 parent ae4b887 commit e592d24
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void test() throws Exception {

BackendHealthStatus _status = status.get(b1conf.hostPort());
assertThat(_status, is(not(nullValue())));
assertThat(_status.getHostPort(), is(b1conf.hostPort().toString()));
assertThat(_status.getHostPort(), is(b1conf.hostPort()));
assertThat(_status.isAvailable(), is(true));
assertThat(_status.isReportedAsUnreachable(), is(false));
assertThat(_status.getReportedAsUnreachableTs(), is(0L));
Expand Down Expand Up @@ -126,7 +126,7 @@ public void test() throws Exception {

BackendHealthStatus _status = status.get(b1conf.hostPort());
assertThat(_status, is(not(nullValue())));
assertThat(_status.getHostPort(), is(b1conf.hostPort().toString()));
assertThat(_status.getHostPort(), is(b1conf.hostPort()));
assertThat(_status.isAvailable(), is(false));
assertThat(_status.isReportedAsUnreachable(), is(true));
assertThat(_status.getReportedAsUnreachableTs() >= startTs, is(true));
Expand Down Expand Up @@ -167,7 +167,7 @@ public void test() throws Exception {

BackendHealthStatus _status = status.get(b1conf.hostPort());
assertThat(_status, is(not(nullValue())));
assertThat(_status.getHostPort(), is(b1conf.hostPort().toString()));
assertThat(_status.getHostPort(), is(b1conf.hostPort()));
assertThat(_status.isAvailable(), is(false));
assertThat(_status.isReportedAsUnreachable(), is(true));
assertThat(_status.getReportedAsUnreachableTs(), is(reportedAsUnreachableTs));
Expand Down Expand Up @@ -206,7 +206,7 @@ public void test() throws Exception {

BackendHealthStatus _status = status.get(b1conf.hostPort());
assertThat(_status, is(not(nullValue())));
assertThat(_status.getHostPort(), is(b1conf.hostPort().toString()));
assertThat(_status.getHostPort(), is(b1conf.hostPort()));
assertThat(_status.isAvailable(), is(true));
assertThat(_status.isReportedAsUnreachable(), is(false));
assertThat(_status.getReportedAsUnreachableTs(), is(0L));
Expand Down

0 comments on commit e592d24

Please sign in to comment.