Skip to content

Commit f663975

Browse files
committed
Increased logging timeout.
1 parent 89549fa commit f663975

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

logging/cloud-client/src/test/java/com/example/logging/LoggingIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void testQuickstart() throws Exception {
7373
assertThat(got).contains("Logged: Hello, world!");
7474
}
7575

76-
@Test(timeout = 20000)
76+
@Test(timeout = 60000)
7777
public void testWriteAndListLogs() throws Exception {
7878
// write a log entry
7979
LogEntry entry = LogEntry.newBuilder(StringPayload.of("Hello world again"))
@@ -87,7 +87,7 @@ public void testWriteAndListLogs() throws Exception {
8787
// Check if the log is listed yet
8888
while (bout.toString().isEmpty()) {
8989
ListLogs.main(TEST_WRITE_LOG);
90-
Thread.sleep(1000);
90+
Thread.sleep(5000);
9191
}
9292
assertThat(bout.toString().contains("Hello world again")).isTrue();
9393
}

0 commit comments

Comments
 (0)