Skip to content

Commit

Permalink
[hotfix] Let NetworkBufferPoolTest extend TestLogger and make TestIOE…
Browse files Browse the repository at this point in the history
…xception static class
  • Loading branch information
tillrohrmann committed Jul 4, 2018
1 parent 390e451 commit 382dd06
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.apache.flink.core.memory.MemorySegment;
import org.apache.flink.core.testutils.CheckedThread;
import org.apache.flink.core.testutils.OneShotLatch;
import org.apache.flink.util.TestLogger;

import org.junit.Rule;
import org.junit.Test;
Expand All @@ -47,7 +48,7 @@
/**
* Tests for {@link NetworkBufferPool}.
*/
public class NetworkBufferPoolTest {
public class NetworkBufferPoolTest extends TestLogger {

@Rule
public ExpectedException expectedException = ExpectedException.none();
Expand Down Expand Up @@ -400,7 +401,7 @@ public void testCreateBufferPoolExceptionDuringBufferRedistribution() throws IOE
}
}

private final class TestIOException extends IOException {
private static final class TestIOException extends IOException {
private static final long serialVersionUID = -814705441998024472L;
}

Expand Down Expand Up @@ -483,7 +484,6 @@ public void go() throws Exception {
globalPool.createBufferPool(10, 10);
} finally {
globalPool.destroy();

}
}
}

0 comments on commit 382dd06

Please sign in to comment.