Skip to content

Commit

Permalink
Ignore test with a TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
eze210 committed Oct 25, 2024
1 parent 3413146 commit 96654ac
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

import static org.mule.runtime.http.api.HttpConstants.HttpStatus.EXPECTATION_FAILED;

import static org.junit.Assert.assertThat;
import static java.lang.System.getProperty;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.junit.Assume.assumeThat;

import org.mule.extension.http.api.HttpResponseAttributes;
import org.mule.runtime.core.api.event.CoreEvent;
Expand All @@ -31,6 +35,9 @@ protected String getConfigFile() {

@Test
public void handlesExpectationFailedResponse() throws Exception {
// TODO (W-15666548): Enable this for NETTY too.
assumeThat(getProperty("mule.http.service.implementation", "GRIZZLY"), is("GRIZZLY"));

startExpectFailedServer();

// Set a payload that will fail when consumed. As the server rejects the request after processing
Expand All @@ -48,5 +55,4 @@ public int read() throws IOException {

stopServer();
}

}

0 comments on commit 96654ac

Please sign in to comment.