Skip to content

Commit

Permalink
Disable expectFailure on windows as the exceptions forwarded by the…
Browse files Browse the repository at this point in the history
… clients are completely different.
  • Loading branch information
SamBarker committed Jul 31, 2024
1 parent bce37ee commit 2ee636f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.condition.OS;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -158,6 +160,7 @@ public void expectContinue() throws Exception {
}

@Test
@DisabledOnOs(OS.WINDOWS)
public void expectFailure() throws IOException, URISyntaxException {
try (final ServerSocket serverSocket = new ServerSocket(0)) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.condition.OS;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -94,6 +96,7 @@ public void putInputStreamBody() throws Exception {
}

@Test
@DisabledOnOs(OS.WINDOWS)
public void expectFailure() throws IOException, URISyntaxException {
try (final ServerSocket serverSocket = new ServerSocket(0)) {

Expand Down

0 comments on commit 2ee636f

Please sign in to comment.