Skip to content

Commit

Permalink
Also catch UncheckedIOException in test to handle broken pipes (#8462)
Browse files Browse the repository at this point in the history
* Also catch UncheckedIOException in test.

Signed-off-by: Santiago Pericasgeertsen <[email protected]>

* Attempt to fix TCK download.

Signed-off-by: Santiago Pericasgeertsen <[email protected]>

---------

Signed-off-by: Santiago Pericasgeertsen <[email protected]>
  • Loading branch information
spericas authored Mar 8, 2024
1 parent d78bc32 commit 984bd0a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion microprofile/tests/tck/tck-core-profile/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<configuration>
<target>
<!-- If you use proxy you need to set it as a system properties -->
<get skipexisting="true" src="https://www.eclipse.org/downloads/download.php?file=/ee4j/jakartaee-tck/jakartaee10/staged/eftl/jakarta-core-profile-tck-${version.lib.microprofile-core-profile}.zip" dest="jakarta-core-profile-tck-${version.lib.microprofile-core-profile}.zip"/>
<get skipexisting="true" src="https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee10/staged/eftl/jakarta-core-profile-tck-${version.lib.microprofile-core-profile}.zip" dest="jakarta-core-profile-tck-${version.lib.microprofile-core-profile}.zip"/>
<unzip src="jakarta-core-profile-tck-${version.lib.microprofile-core-profile}.zip" dest="./target"/>
<chmod file="artifact-install.sh" perm="+x"/>
<exec executable="sh">
Expand Down
2 changes: 1 addition & 1 deletion microprofile/tests/tck/tck-jsonb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<configuration>
<target>
<!-- If you use proxy you need to set it as a system properties -->
<get skipexisting="true" src="https://www.eclipse.org/downloads/download.php?file=/ee4j/jakartaee-tck/jakartaee10/promoted/eftl/jakarta-jsonb-tck-${version.lib.jakarta.jsonb-api}.zip" dest="jakarta-jsonb-tck-${version.lib.jakarta.jsonb-api}.zip"/>
<get skipexisting="true" src="https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee10/promoted/eftl/jakarta-jsonb-tck-${version.lib.jakarta.jsonb-api}.zip" dest="jakarta-jsonb-tck-${version.lib.jakarta.jsonb-api}.zip"/>
<unzip src="jakarta-jsonb-tck-${version.lib.jakarta.jsonb-api}.zip" dest="./target"/>
<chmod file="target/jsonb-tck/artifacts/artifact-install.sh" perm="+x"/>
<exec dir="target/jsonb-tck/artifacts" executable="sh">
Expand Down
2 changes: 1 addition & 1 deletion microprofile/tests/tck/tck-restful/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<configuration>
<target>
<!-- If you use proxy you need to set it as a system properties -->
<get skipexisting="true" src="https://www.eclipse.org/downloads/download.php?file=/ee4j/jakartaee-tck/jakartaee10/staged/eftl/jakarta-restful-ws-tck-${version.lib.microprofile-restful-tck}.zip" dest="jakarta-restful-ws-tck-${version.lib.microprofile-restful-tck}.zip"/>
<get skipexisting="true" src="https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee10/staged/eftl/jakarta-restful-ws-tck-${version.lib.microprofile-restful-tck}.zip" dest="jakarta-restful-ws-tck-${version.lib.microprofile-restful-tck}.zip"/>
<unzip src="jakarta-restful-ws-tck-${version.lib.microprofile-restful-tck}.zip" dest="./target"/>
<chmod file="artifact-install.sh" perm="+x"/>
<exec executable="sh">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void testActualLengthExceededWithPayload() {
it.write(PAYLOAD_BYTES);
it.write(PAYLOAD_BYTES);
it.write(PAYLOAD_BYTES);
} catch (IOException e) {
} catch (IOException | UncheckedIOException e) {
// ignored -- possible connection reset
}
})) {
Expand Down

0 comments on commit 984bd0a

Please sign in to comment.