DefaultPromiseTest dead code removal
Motivation: DefaultPromiseTest has dead code which was left over from a code restructure. Shared code between 2 tests was moved into a common method, but some code which was not cleaned up in each of these methods after the code was moved. Modifications: - Delete dead code in DefaultPromiseTest Result: Less dead code
This commit is contained in:
parent
9b190e2d7e
commit
fae6d16467
@ -179,22 +179,12 @@ public class DefaultPromiseTest {
|
|||||||
|
|
||||||
@Test(timeout = 2000)
|
@Test(timeout = 2000)
|
||||||
public void testLateListenerIsOrderedCorrectlySuccess() throws InterruptedException {
|
public void testLateListenerIsOrderedCorrectlySuccess() throws InterruptedException {
|
||||||
final EventExecutor executor = new TestEventExecutor();
|
|
||||||
try {
|
|
||||||
testLateListenerIsOrderedCorrectly(null);
|
testLateListenerIsOrderedCorrectly(null);
|
||||||
} finally {
|
|
||||||
executor.shutdownGracefully(0, 0, TimeUnit.SECONDS).sync();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 2000)
|
@Test(timeout = 2000)
|
||||||
public void testLateListenerIsOrderedCorrectlyFailure() throws InterruptedException {
|
public void testLateListenerIsOrderedCorrectlyFailure() throws InterruptedException {
|
||||||
final EventExecutor executor = new TestEventExecutor();
|
|
||||||
try {
|
|
||||||
testLateListenerIsOrderedCorrectly(fakeException());
|
testLateListenerIsOrderedCorrectly(fakeException());
|
||||||
} finally {
|
|
||||||
executor.shutdownGracefully(0, 0, TimeUnit.SECONDS).sync();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user