~jan0sch/smederee

Showing details for patch 3bcfdad7f45ecb4f8a61851474829a9439328e28.
2023-12-01 (Fri), 7:03 PM - Jens Grassel - 3bcfdad7f45ecb4f8a61851474829a9439328e28

darcs: Fix deprecation warning about ResourceFixture

Summary of changes
2 files modified with 2 lines added and 2 lines removed
  • modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala with 1 added and 1 removed lines
  • modules/hub/src/test/scala/de/smederee/ssh/SshServerProviderTest.scala with 1 added and 1 removed lines
diff -rN -u old-smederee/modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala new-smederee/modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala
--- old-smederee/modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala	2025-01-13 11:59:51.043627949 +0000
+++ new-smederee/modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala	2025-01-13 11:59:51.043627949 +0000
@@ -31,7 +31,7 @@
     val darcsBinary = Paths.get("darcs")
 
     @nowarn("msg=discarded non-Unit value.*")
-    val tempWorkingDirectory = ResourceFixture(
+    val tempWorkingDirectory = ResourceFunFixture(
         Resource.make(IO(Files.createTempDirectory("darcs-cmd-test-").toAbsolutePath()))(path =>
             IO(deleteDirectory(path))
         )
diff -rN -u old-smederee/modules/hub/src/test/scala/de/smederee/ssh/SshServerProviderTest.scala new-smederee/modules/hub/src/test/scala/de/smederee/ssh/SshServerProviderTest.scala
--- old-smederee/modules/hub/src/test/scala/de/smederee/ssh/SshServerProviderTest.scala	2025-01-13 11:59:51.043627949 +0000
+++ new-smederee/modules/hub/src/test/scala/de/smederee/ssh/SshServerProviderTest.scala	2025-01-13 11:59:51.047627956 +0000
@@ -41,7 +41,7 @@
         )(_ => IO.unit)
     )
 
-    val freePort = ResourceFixture(Resource.make(IO(findFreePort()))(_ => IO.unit))
+    val freePort = ResourceFunFixture(Resource.make(IO(findFreePort()))(_ => IO.unit))
 
     override def munitFixtures = List(repositoriesDirectory, serverKeyFile)