This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git


The following commit(s) were added to refs/heads/main by this push:
     new dd9e1a39c fix issue in listDirectoryContents test (#559)
dd9e1a39c is described below

commit dd9e1a39c97f3e8ecfd0fab0e61c003ac5d48414
Author: PJ Fanning <[email protected]>
AuthorDate: Sat May 18 14:26:26 2024 +0100

    fix issue in listDirectoryContents test (#559)
---
 .../http/scaladsl/server/directives/FileAndResourceDirectivesSpec.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/http-tests/src/test/scala/org/apache/pekko/http/scaladsl/server/directives/FileAndResourceDirectivesSpec.scala
 
b/http-tests/src/test/scala/org/apache/pekko/http/scaladsl/server/directives/FileAndResourceDirectivesSpec.scala
index c77f47d6d..0e9e8c3f2 100644
--- 
a/http-tests/src/test/scala/org/apache/pekko/http/scaladsl/server/directives/FileAndResourceDirectivesSpec.scala
+++ 
b/http-tests/src/test/scala/org/apache/pekko/http/scaladsl/server/directives/FileAndResourceDirectivesSpec.scala
@@ -325,7 +325,7 @@ class FileAndResourceDirectivesSpec extends RoutingSpec 
with Inspectors with Ins
   }
 
   "listDirectoryContents" should {
-    val base = new File(getClass.getClassLoader.getResource("").toURI).getPath
+    val base = testRoot.getPath
     new File(base, "subDirectory/emptySub").mkdir()
     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")
     val settings = RoutingSettings.default.withRenderVanityFooter(false)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to