Skip to content

Commit

Permalink
#838 CR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
olenagerasimova committed Dec 6, 2018
1 parent 403e55d commit 9ef766a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/test/java/org/takes/rs/RsPrintTest.java
Expand Up @@ -88,11 +88,9 @@ public void closeBodyEvenWhenExceptionHappens() throws IOException {
new RsPrint(new RsText(input))
.printBody(output);
} catch (final IOException ex) {
MatcherAssert.assertThat(
"Wrong exception",
ex,
new IsEqual<>(exception)
);
if (!ex.equals(exception)) {
throw ex;
}
}
MatcherAssert.assertThat(
"Input body was not closed",
Expand Down

0 comments on commit 9ef766a

Please sign in to comment.