Skip to content

Commit

Permalink
Fix PreCommit Java IOs Direct job (#33813)
Browse files Browse the repository at this point in the history
* Fix timeout in rrio test

* Fix mqtt read time
  • Loading branch information
Amar3tto authored Jan 30, 2025
1 parent d121703 commit 4a09fc4
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 @@ -216,7 +216,7 @@ public void testReadWithMetadata() throws Exception {
.withConnectionConfiguration(
MqttIO.ConnectionConfiguration.create("tcp://localhost:" + port, wildcardTopic))
.withMaxNumRecords(10)
.withMaxReadTime(Duration.standardSeconds(5));
.withMaxReadTime(Duration.standardSeconds(10));

final PCollection<MqttRecord> output = pipeline.apply(mqttReaderWithMetadata);
PAssert.that(output)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void givenCallerThrowsQuotaException_emitsIntoFailurePCollection() {

@Test
public void givenCallerTimeout_emitsFailurePCollection() {
Duration timeout = Duration.standardSeconds(1L);
Duration timeout = Duration.standardMinutes(1L);
Result<Response> result =
pipeline
.apply(Create.of(new Request("a")))
Expand Down Expand Up @@ -182,7 +182,7 @@ public void givenSetupThrowsQuotaException_throwsError() {

@Test
public void givenSetupTimeout_throwsError() {
Duration timeout = Duration.standardSeconds(1L);
Duration timeout = Duration.standardMinutes(1L);

pipeline
.apply(Create.of(new Request("")))
Expand Down Expand Up @@ -231,7 +231,7 @@ public void givenTeardownThrowsQuotaException_throwsError() {

@Test
public void givenTeardownTimeout_throwsError() {
Duration timeout = Duration.standardSeconds(1L);
Duration timeout = Duration.standardMinutes(1L);
pipeline
.apply(Create.of(new Request("")))
.apply(
Expand Down

0 comments on commit 4a09fc4

Please sign in to comment.