diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-04-21 13:37:15 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-04-21 13:37:15 +0000 |
commit | dfe5883f1106ac57fa943473f8b244b9442f33a9 (patch) | |
tree | cdc3eaa4dc61ee43f447a5784202f2ab2d6a85b0 /container-core | |
parent | 208477fe214d19d7514a13bc095655d85fa7a0bf (diff) |
ensure the handler actually runs before checking what it did
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/test/java/com/yahoo/container/jdisc/ThreadedHttpRequestHandlerTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/container-core/src/test/java/com/yahoo/container/jdisc/ThreadedHttpRequestHandlerTest.java b/container-core/src/test/java/com/yahoo/container/jdisc/ThreadedHttpRequestHandlerTest.java index 07dba21e5b6..3d02f3e08f2 100644 --- a/container-core/src/test/java/com/yahoo/container/jdisc/ThreadedHttpRequestHandlerTest.java +++ b/container-core/src/test/java/com/yahoo/container/jdisc/ThreadedHttpRequestHandlerTest.java @@ -21,7 +21,7 @@ public class ThreadedHttpRequestHandlerTest { ThreadedHttpRequestHandlerThrowingException handler = new ThreadedHttpRequestHandlerThrowingException(metricMock); RequestHandlerTestDriver driver = new RequestHandlerTestDriver(handler); - driver.sendRequest("http://localhost/myhandler"); + driver.sendRequest("http://localhost/myhandler").readAll(); String expectedMetricName = "jdisc.http.handler.unhandled_exceptions"; assertThat(metricMock.addInvocations) .containsKey(expectedMetricName); @@ -54,4 +54,4 @@ public class ThreadedHttpRequestHandlerTest { } private static class DummyException extends RuntimeException {} -}
\ No newline at end of file +} |