Skip to content

Commit

Permalink
Ensure that thread is not interrupted.
Browse files Browse the repository at this point in the history
It is possible that thread might have been interrupted so shutdownAndAwaitTermination might return silently. Earlier I was thinking we would catch any such error on assertions of the output but that's not guaranteed.

PiperOrigin-RevId: 732167368
  • Loading branch information
gkdn authored and copybara-github committed Feb 28, 2025
1 parent 8007d8e commit 9df14c7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ public boolean isCancelled() {
} finally {
MoreExecutors.shutdownAndAwaitTermination(executorService, 30, SECONDS);
}
assertThat(Thread.currentThread().isInterrupted()).isFalse();

final String[] knownDelayedCalls = {
"com.google.j2cl.transpiler.frontend.javac.JavacParser.parseFiles",
Expand Down

0 comments on commit 9df14c7

Please sign in to comment.