Skip to content

Commit dd9e1a3

Browse files
authored
fix issue in listDirectoryContents test (apache#559)
1 parent d2c0c01 commit dd9e1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http-tests/src/test/scala/org/apache/pekko/http/scaladsl/server/directives/FileAndResourceDirectivesSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class FileAndResourceDirectivesSpec extends RoutingSpec with Inspectors with Ins
325325
}
326326

327327
"listDirectoryContents" should {
328-
val base = new File(getClass.getClassLoader.getResource("").toURI).getPath
328+
val base = testRoot.getPath
329329
new File(base, "subDirectory/emptySub").mkdir()
330330
def eraseDateTime(s: String) = s.replaceAll("""\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d""", "xxxx-xx-xx xx:xx:xx")
331331
val settings = RoutingSettings.default.withRenderVanityFooter(false)

0 commit comments

Comments
 (0)