mirror of
https://github.com/corda/corda.git
synced 2025-01-13 00:09:57 +00:00
CORDA-1976 - Fix flaky test (#3935)
This commit is contained in:
parent
eac9d1b93c
commit
50d3f7b474
@ -36,6 +36,9 @@ class FailNodeOnNotMigratedAttachmentContractsTableNameTests {
|
|||||||
val user = User("mark", "dadada", setOf(Permissions.startFlow<SendMessageFlow>(), Permissions.invokeRpc("vaultQuery")))
|
val user = User("mark", "dadada", setOf(Permissions.startFlow<SendMessageFlow>(), Permissions.invokeRpc("vaultQuery")))
|
||||||
val message = Message("Hello world!")
|
val message = Message("Hello world!")
|
||||||
val baseDir: Path = driver(DriverParameters(startNodesInProcess = true, portAllocation = RandomFree, extraCordappPackagesToScan = listOf(MessageState::class.packageName))) {
|
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) = {
|
val (nodeName, baseDir) = {
|
||||||
defaultNotaryNode.getOrThrow()
|
defaultNotaryNode.getOrThrow()
|
||||||
val nodeHandle = startNode(rpcUsers = listOf(user)).getOrThrow()
|
val nodeHandle = startNode(rpcUsers = listOf(user)).getOrThrow()
|
||||||
|
Loading…
Reference in New Issue
Block a user