Skip to content

Commit

Permalink
Issue #203: Refactor-Extensions-code-to-check-protocol-efficiently
Browse files Browse the repository at this point in the history
Modify OsCommandExtensionTest and WbemExtensionTest
  • Loading branch information
SafaeAJ committed Jun 4, 2024
1 parent 65a46de commit 0681744
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ void testCheckSshNoHealthWhenMustCheckFalse() {
Optional<Boolean> result = osCommandExtension.checkProtocol(telemetryManager);

// Assert the result
assertEquals(Optional.empty(),result);
assertEquals(Optional.empty(), result);
}

@Test
Expand All @@ -497,7 +497,7 @@ void testCheckSshNoHealthWhenNoConfiguration() {
Optional<Boolean> result = osCommandExtension.checkProtocol(telemetryManager);

// Assert the result
assertEquals(Optional.empty(),result);
assertEquals(Optional.empty(), result);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ void testCheckWbemDownHealth() throws ClientException {
.doWbemQuery(anyString(), any(WbemConfiguration.class), anyString(), anyString());

// Start the WBEM Health Check strategy
boolean result = wbemExtension.checkProtocol(telemetryManager);
Optional<Boolean> result = wbemExtension.checkProtocol(telemetryManager);

assertFalse(result);
assertFalse(result.get());
}

@Test
Expand Down

0 comments on commit 0681744

Please sign in to comment.