Skip to content

Commit

Permalink
Formatting changes from local build
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Barker <[email protected]>

rh-pre-commit.version: 2.0.1
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
SamBarker committed Nov 13, 2023
1 parent 04b4034 commit 400b710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Iterator;
import java.util.concurrent.TimeUnit;
import java.util.Optional;
import java.util.concurrent.TimeUnit;
import java.util.stream.Stream;

import org.slf4j.Logger;
Expand Down Expand Up @@ -99,9 +99,9 @@ public String getBootstrap() {
String clusterIP = null;
try {
var nis = NetworkInterface.getNetworkInterfaces();
for (Iterator<NetworkInterface> it = nis.asIterator(); it.hasNext(); ) {
for (Iterator<NetworkInterface> it = nis.asIterator(); it.hasNext();) {
var ni = it.next();
for (Iterator<InetAddress> iter = ni.getInetAddresses().asIterator(); iter.hasNext(); ) {
for (Iterator<InetAddress> iter = ni.getInetAddresses().asIterator(); iter.hasNext();) {
var i = iter.next();
if (i.getHostAddress().startsWith("10")) {
clusterIP = i.getHostAddress();
Expand Down Expand Up @@ -137,4 +137,4 @@ public void stop() {
thread.interrupt();
ProcessHandle.of(pid).ifPresent(ProcessHandle::destroy);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static String ConsumeMessageWithTestClients(String deployNamespace, Strin
kubeClient().getClient().load(file).inNamespace(deployNamespace).create();
String podName = getPodNameByLabel(deployNamespace, "app", Constants.KAFKA_CONSUMER_CLIENT_LABEL, timeoutMilliseconds);
await().atMost(Duration.ofMillis(timeoutMilliseconds)).until(() -> {
if (kubeClient().getClient().pods().inNamespace(deployNamespace).withName(podName).get() != null ) {
if (kubeClient().getClient().pods().inNamespace(deployNamespace).withName(podName).get() != null) {
var log = kubeClient().logsInSpecificNamespace(deployNamespace, podName);
return log.contains(" - " + (numOfMessages - 1));
}
Expand Down

0 comments on commit 400b710

Please sign in to comment.