diff --git a/vertx-core/src/test/java/io/vertx/tests/file/FileResolverTestBase.java b/vertx-core/src/test/java/io/vertx/tests/file/FileResolverTestBase.java index 76c4d99b0cc..32d87e4c6d3 100644 --- a/vertx-core/src/test/java/io/vertx/tests/file/FileResolverTestBase.java +++ b/vertx-core/src/test/java/io/vertx/tests/file/FileResolverTestBase.java @@ -442,7 +442,10 @@ public void testReadFileInDirThenReadDirMultipleLevels() { @Test public void testBugEndWithSlash() { FileResolver resolver = ((VertxInternal) vertx).fileResolver(); - File buff = resolver.resolveFile("tree/"); + File f = resolver.resolveFile("tree/"); + assertNotNull(f); + assertTrue(f.isDirectory()); + assertEquals("tree", f.getName()); } @Test