diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-07-04 16:22:59 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-07-04 16:22:59 +0200 |
commit | 8dc4851d9a6fdc495d78a0bbc7fd34d4fdab4317 (patch) | |
tree | 36bfe2529ff92975752063b2ee178567ac6f9b0c /jdisc_core/src/test/java/com/yahoo/jdisc/handler/ResponseDispatchTestCase.java | |
parent | 1758e64338c4076c222e6c04b8c481f33bb462fc (diff) |
sameThreadExecutor -> directExecutor
The former is deprecated and will be removed in "August 2016"
Diffstat (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/handler/ResponseDispatchTestCase.java')
-rw-r--r-- | jdisc_core/src/test/java/com/yahoo/jdisc/handler/ResponseDispatchTestCase.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/handler/ResponseDispatchTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/handler/ResponseDispatchTestCase.java index 92fc0f90c07..0dd1e7657fe 100644 --- a/jdisc_core/src/test/java/com/yahoo/jdisc/handler/ResponseDispatchTestCase.java +++ b/jdisc_core/src/test/java/com/yahoo/jdisc/handler/ResponseDispatchTestCase.java @@ -179,7 +179,7 @@ public class ResponseDispatchTestCase { ReadableContentChannel responseContent = new ReadableContentChannel(); ResponseDispatch.newInstance(6, ByteBuffer.allocate(9)) .dispatch(new MyResponseHandler(responseContent)) - .addListener(listener, MoreExecutors.sameThreadExecutor()); + .addListener(listener, MoreExecutors.directExecutor()); assertFalse(listener.await(100, TimeUnit.MILLISECONDS)); assertNotNull(responseContent.read()); assertFalse(listener.await(100, TimeUnit.MILLISECONDS)); |