Skip to content

Commit

Permalink
fix test and spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 committed Aug 19, 2022
1 parent 546d3de commit 1e5f053
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,8 @@ private void detectJemalloc() {
.ifPresentOrElse(
present -> logger.info("Using jemalloc"),
() ->
logger.info("jemalloc library not found, memory usage may be reduced by installing it"));
logger.info(
"jemalloc library not found, memory usage may be reduced by installing it"));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5333,6 +5333,7 @@ public void logsUsingJemallocWhenEnvVarPresent() {
public void logsSuggestInstallingJemallocWhenEnvVarNotPresent() {
assumeThat(PlatformDetector.getOSType(), is("linux"));
parseCommand();
verify(mockLogger).info("jemalloc not found, you could improve memory usage installing it");
verify(mockLogger)
.info("jemalloc library not found, memory usage may be reduced by installing it");
}
}

0 comments on commit 1e5f053

Please sign in to comment.