Skip to content

Commit

Permalink
Switched to use guard as Teamcity test runner does not appear to supp…
Browse files Browse the repository at this point in the history
…ort assumeTrue
  • Loading branch information
danielbodart committed Feb 6, 2018
1 parent bafbddb commit 3b8dc4d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/com/googlecode/utterlyidle/ServerContract.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ public void stop() throws Exception {

@Test
public void detectsEmptyInputStreams() throws Exception {
assumeTrue(isServletBased());
Response response = handle(Request.get("empty"), server);
assertThat(response.status(), is(Status.OK));
assertThat(response.entity().toString(), is("true"));
if(isServletBased()){ // assumeTrue does not work with Teamcity Runner
Response response = handle(Request.get("empty"), server);
assertThat(response.status(), is(Status.OK));
assertThat(response.entity().toString(), is("true"));
}
}

@Test
Expand Down

0 comments on commit 3b8dc4d

Please sign in to comment.