From 50d3f7b4746d067f56d5d59b3e6e680c19113b5e Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Thu, 13 Sep 2018 13:43:59 +0100 Subject: [PATCH] CORDA-1976 - Fix flaky test (#3935) --- .../FailNodeOnNotMigratedAttachmentContractsTableNameTests.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node/src/integration-test/kotlin/net/corda/node/persistence/FailNodeOnNotMigratedAttachmentContractsTableNameTests.kt b/node/src/integration-test/kotlin/net/corda/node/persistence/FailNodeOnNotMigratedAttachmentContractsTableNameTests.kt index bcc34f2744..7c2a988c53 100644 --- a/node/src/integration-test/kotlin/net/corda/node/persistence/FailNodeOnNotMigratedAttachmentContractsTableNameTests.kt +++ b/node/src/integration-test/kotlin/net/corda/node/persistence/FailNodeOnNotMigratedAttachmentContractsTableNameTests.kt @@ -36,6 +36,9 @@ class FailNodeOnNotMigratedAttachmentContractsTableNameTests { val user = User("mark", "dadada", setOf(Permissions.startFlow(), Permissions.invokeRpc("vaultQuery"))) val message = Message("Hello world!") val baseDir: Path = driver(DriverParameters(startNodesInProcess = true, portAllocation = RandomFree, extraCordappPackagesToScan = listOf(MessageState::class.packageName))) { + // Just start a node to make this test less flaky. + startNode(rpcUsers = listOf(user)).getOrThrow() + val (nodeName, baseDir) = { defaultNotaryNode.getOrThrow() val nodeHandle = startNode(rpcUsers = listOf(user)).getOrThrow()