From 9069056cff302285d95645221f94d911077db0c6 Mon Sep 17 00:00:00 2001 From: Ivan Subotic <400790+subotic@users.noreply.github.com> Date: Mon, 21 Sep 2020 09:01:07 +0200 Subject: [PATCH] test: fix generation of test data (#1714) --- webapi/src/test/scala/org/knora/webapi/R2RSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapi/src/test/scala/org/knora/webapi/R2RSpec.scala b/webapi/src/test/scala/org/knora/webapi/R2RSpec.scala index 95038149eb..b6f67eb28a 100644 --- a/webapi/src/test/scala/org/knora/webapi/R2RSpec.scala +++ b/webapi/src/test/scala/org/knora/webapi/R2RSpec.scala @@ -139,7 +139,7 @@ class R2RSpec extends Core with StartupUtils with Suite with ScalatestRouteTest val testOutputDir = sys.env("TEST_UNDECLARED_OUTPUTS_DIR") val newOutputFile = new File(testOutputDir, file.getPath) newOutputFile.getParentFile.mkdirs() - FileUtil.writeTextFile(file, responseAsString.replaceAll(settings.externalSipiIIIFGetUrl, "IIIF_BASE_URL")) + FileUtil.writeTextFile(newOutputFile, responseAsString.replaceAll(settings.externalSipiIIIFGetUrl, "IIIF_BASE_URL")) responseAsString } else { FileUtil.readTextFile(file).replaceAll("IIIF_BASE_URL", settings.externalSipiIIIFGetUrl)