KEYCLOAK-16157 Fix Unexpected I/O error message

This commit is contained in:
Hynek Mlnarik 2020-11-10 16:45:00 +01:00 committed by Hynek Mlnařík
parent 852c4a57ff
commit 030a077e99

View file

@ -2,6 +2,7 @@ package org.keycloak.testsuite.cli.exec;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.InterruptedIOException;
import java.io.OutputStream; import java.io.OutputStream;
import static org.keycloak.testsuite.cli.exec.AbstractExec.copyStream; import static org.keycloak.testsuite.cli.exec.AbstractExec.copyStream;
@ -19,6 +20,8 @@ class StreamReaderThread extends Thread {
public void run() { public void run() {
try { try {
copyStream(is, os); copyStream(is, os);
} catch (InterruptedIOException ignored) {
// Ignore, this is when the stream is terminated via signal upon exit
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException("Unexpected I/O error", e); throw new RuntimeException("Unexpected I/O error", e);
} finally { } finally {