Skip to content

Commit d11caa1

Browse files
averikitschShabirmean
authored andcommitted
fix: wait for service to be deleted
1 parent 144869e commit d11caa1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

run/jobs/src/test/java/com/example/JobsIntegrationTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ public static void cleanup() throws IOException, InterruptedException {
8484
"--project=" + project,
8585
String.format("--substitutions _SERVICE=%s,_VERSION=%s", service, suffix));
8686

87-
cleanup.start();
87+
System.out.println("Deleting Cloud Run job: " + service);
88+
Process p = cleanup.start();
89+
p.waitFor(5, TimeUnit.MINUTES);
8890
}
8991

9092
@Test

0 commit comments

Comments
 (0)