Skip to content

Commit

Permalink
[hotfix] [tests] Remove console poluting output in tests of flink-str…
Browse files Browse the repository at this point in the history
…eaming-java
  • Loading branch information
StephanEwen committed Nov 3, 2017
1 parent fe931d0 commit 2c0fa24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void setUp() throws Exception {
* @see #testLogTimeoutAlmostReachedWarningDuringRecovery
*/
private void setupLogger() {
Logger.getRootLogger().removeAllAppenders();
logger = Logger.getLogger(TwoPhaseCommitSinkFunction.class);
testAppender = new AppenderSkeleton() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.internal.util.reflection.Whitebox;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;

Expand Down Expand Up @@ -77,6 +78,7 @@
*/
@RunWith(PowerMockRunner.class)
@PrepareForTest(AbstractStreamOperator.class)
@PowerMockIgnore({"java.*", "javax.*", "org.slf4j.*", "org.apache.log4j.*"})
public class AbstractStreamOperatorTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,6 @@ public void testSnapshotAndRestore() throws Exception {
expectedOutput.add(new StreamRecord<>("EVENT:1777", 6L));
expectedOutput.add(new Watermark(6));

System.out.println("GOT: " + testHarness.getOutput());

TestHarnessUtil.assertOutputEquals("Output was not correct.", expectedOutput, testHarness.getOutput());

testHarness.close();
Expand Down

0 comments on commit 2c0fa24

Please sign in to comment.