Skip to content

Commit

Permalink
COH-21610 - Investigate MessageBusTest Failure ( 14.1.1.0 -> ce-14.1.…
Browse files Browse the repository at this point in the history
…1 @80683)

[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v14.1.1.0/": change = 80684]
  • Loading branch information
tmiddlet2666 committed Jul 29, 2020
1 parent e3f5623 commit 2ce012f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@

import static com.oracle.bedrock.deferred.DeferredHelper.delayedBy;
import static com.oracle.bedrock.deferred.DeferredHelper.invoking;
import static org.hamcrest.CoreMatchers.everyItem;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.IsCollectionContaining.hasItem;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;


Expand Down Expand Up @@ -437,8 +439,8 @@ protected void twoMembersTest(String[] asArg1, String[] asArg2, long cMillis)
Eventually.assertThat(invoking(console1).getCapturedOutputLines(), Matchers.hasItem(containsString("connections 1, errors 0")),
delayedBy(cMillis, TimeUnit.MILLISECONDS));
Eventually.assertThat(invoking(console2).getCapturedOutputLines(), Matchers.hasItem(containsString("connections 1, errors 0")));
assertFalse(hasItem(containsString("WARNING:")).matches(console1.getCapturedErrorLines()));
assertFalse(hasItem(containsString("WARNING:")).matches(console2.getCapturedErrorLines()));
assertThat(console1.getCapturedErrorLines(), everyItem(not(containsString("WARNING:"))));
assertThat(console2.getCapturedErrorLines(), everyItem(not(containsString("WARNING:"))));

output1.addAll(console1.getCapturedOutputLines());
output1.addAll(console1.getCapturedErrorLines());
Expand Down

0 comments on commit 2ce012f

Please sign in to comment.