Skip to content

Commit

Permalink
test: fix generation of test data (#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic committed Sep 21, 2020
1 parent 0d6b4ee commit 9069056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapi/src/test/scala/org/knora/webapi/R2RSpec.scala
Expand Up @@ -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)
Expand Down

0 comments on commit 9069056

Please sign in to comment.