Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tests
  • Loading branch information
nehrao1 committed Dec 28, 2024
commit 1fb1ea9092c19ffa840054232994156e35f2010d
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public void isHealthyForWriteHangTests(boolean withFailureReason) throws Interru
assertThat(healthyResult.getNow()).isNotEqualTo(RntbdConstants.RntbdHealthCheckResults.SuccessValue);
assertThat(healthyResult.getNow().contains("health check failed due to non-responding write"));
assertThat(healthyResult.getNow().contains("clientVmId: testClientVmId"));
assertThat(healthyResult.getNow().contains("clientUsedMemory"));
assertThat(healthyResult.getNow().contains("clientAvailableMemory"));
assertThat(healthyResult.getNow().contains("clientSystemCpuLoad"));
assertThat(healthyResult.getNow().contains("clientAvailableProcessors"));
} else {
Future<Boolean> healthyResult = healthChecker.isHealthy(channelMock).sync();
assertThat(healthyResult.isSuccess()).isTrue();
Expand Down Expand Up @@ -129,6 +133,11 @@ public void isHealthyForReadHangTests(boolean withFailureReason) throws Interrup
assertThat(healthyResult.isSuccess()).isTrue();
assertThat(healthyResult.getNow()).isNotEqualTo(RntbdConstants.RntbdHealthCheckResults.SuccessValue);
assertThat(healthyResult.getNow().contains("health check failed due to non-responding read"));
assertThat(healthyResult.getNow().contains("clientVmId: testClientVmId"));
assertThat(healthyResult.getNow().contains("clientUsedMemory"));
assertThat(healthyResult.getNow().contains("clientAvailableMemory"));
assertThat(healthyResult.getNow().contains("clientSystemCpuLoad"));
assertThat(healthyResult.getNow().contains("clientAvailableProcessors"));
} else {
Future<Boolean> healthyResult = healthChecker.isHealthy(channelMock).sync();
assertThat(healthyResult.isSuccess()).isTrue();
Expand Down
Loading