Skip to content

Commit

Permalink
build: fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Nov 13, 2023
1 parent 0d6086d commit 086f02b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,11 @@ public boolean hasNext() {

@Override
public ConsumerRecords<String, byte[]> next() {
var records = consumer.poll(Duration.ZERO);
while (active.get() && records.isEmpty()) {
ConsumerRecords<String, byte[]> records;
do {
records = consumer.poll(pollDuration);
}
} while (active.get() && records.isEmpty());

return records;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ public Map<String, String> dataPlaneConfiguration() {
put("edc.keystore", resourceAbsolutePath("certs/cert.pfx"));
put("edc.keystore.password", "123456");
put("edc.dataplane.token.validation.endpoint", controlPlaneControl + "/token");
put("edc.dataplane.http.sink.partition.size", "1");
}
};
}
Expand Down

0 comments on commit 086f02b

Please sign in to comment.