You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2021/09/09 05:25:25 UTC
[flink] 03/03: [hotfix][rest][tests] Cleanup
This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 69fefdd49e725dd102f6a24774686bc058ff74e0
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Wed Sep 8 10:12:53 2021 +0200
[hotfix][rest][tests] Cleanup
This reverts commit 69de4b66b27f4b83e3b5fff59dfc793209c72640.
---
.../flink/runtime/webmonitor/utils/WebFrontendBootstrapTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrapTest.java b/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrapTest.java
index 42c2491..5deba65 100644
--- a/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrapTest.java
+++ b/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrapTest.java
@@ -61,8 +61,9 @@ public class WebFrontendBootstrapTest {
configuration.setString(
Prio0InboundChannelHandlerFactory.REDIRECT_FROM_URL, "/nonExisting");
configuration.setString(Prio0InboundChannelHandlerFactory.REDIRECT_TO_URL, "/index.html");
- Router router =
- new Router().addGet("/:*", new HistoryServerStaticFileServerHandler(webDir));
+ Router<?> router =
+ new Router<>()
+ .addGet("/:*", new HistoryServerStaticFileServerHandler(webDir.toFile()));
WebFrontendBootstrap webUI =
new WebFrontendBootstrap(
router,