summaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/test/java/com/yahoo/jdisc/handler/RequestDispatchTestCase.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-07-04 16:22:59 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-07-04 16:22:59 +0200
commit8dc4851d9a6fdc495d78a0bbc7fd34d4fdab4317 (patch)
tree36bfe2529ff92975752063b2ee178567ac6f9b0c /jdisc_core/src/test/java/com/yahoo/jdisc/handler/RequestDispatchTestCase.java
parent1758e64338c4076c222e6c04b8c481f33bb462fc (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/RequestDispatchTestCase.java')
-rw-r--r--jdisc_core/src/test/java/com/yahoo/jdisc/handler/RequestDispatchTestCase.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/handler/RequestDispatchTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/handler/RequestDispatchTestCase.java
index f13473a1660..dbce93c8f98 100644
--- a/jdisc_core/src/test/java/com/yahoo/jdisc/handler/RequestDispatchTestCase.java
+++ b/jdisc_core/src/test/java/com/yahoo/jdisc/handler/RequestDispatchTestCase.java
@@ -218,7 +218,7 @@ public class RequestDispatchTestCase {
protected Request newRequest() {
return new Request(driver, URI.create("http://localhost/"));
}
- }.dispatch().addListener(listener, MoreExecutors.sameThreadExecutor());
+ }.dispatch().addListener(listener, MoreExecutors.directExecutor());
assertFalse(listener.await(100, TimeUnit.MILLISECONDS));
ContentChannel responseContent = ResponseDispatch.newInstance(Response.Status.OK)
.connect(requestHandler.responseHandler);