Skip to content

Commit

Permalink
(yegor256#1396) Add messages
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Jul 15, 2020
1 parent b7f5c62 commit 28824d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/org/cactoos/func/TimedFuncTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void futureTaskIsCancelled() {
// @checkstyle IllegalCatchCheck (1 line)
} catch (final Exception exp) {
new Assertion<>(
"",
(Boolean) future.isCancelled(),
"Must be canceled after 1 sec",
future.isCancelled(),
Matchers.equalTo(true)
).affirm();
}
Expand All @@ -83,7 +83,7 @@ public void futureTaskIsCancelled() {
public void functionIsExecuted() throws Exception {
final long period = 3000L;
new Assertion<>(
"",
"Must execute the function",
new Timed<Boolean, Boolean>(
input -> true,
period
Expand Down

0 comments on commit 28824d1

Please sign in to comment.