Fix tests using blocked vulnerable methods

This commit is contained in:
rick.parker 2023-04-12 09:44:05 +01:00
parent 781aa892de
commit f5ed60caa6
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class CordaServiceIssueOnceAtStartupTests {
private val armedPropName = this::class.java.enclosingClass.name + "-armed"
private val logger = contextLogger()
private val tempFilePropertyName = this::class.java.enclosingClass.name + "-tmpFile"
private val tmpFile = createTempFile(prefix = tempFilePropertyName)
private val tmpFile = File.createTempFile(tempFilePropertyName, null)
private const val vaultQueryExecutedMarker = "VaultQueryExecuted"
private const val sentFlowMarker = "SentFlow"
}

View File

@ -34,7 +34,7 @@ class CordaServiceLifecycleFatalTests {
// Temporaty file used as a latch between two processes
private val tempFilePropertyName = this::class.java.enclosingClass.name + "-tmpFile"
private val tmpFile = createTempFile(prefix = tempFilePropertyName)
private val tmpFile = File.createTempFile(tempFilePropertyName, null)
private const val readyToThrowMarker = "ReadyToThrow"
private const val goodToThrowMarker = "GoodToThrow"