From 8fb0db1908b3f908a696fb72be20b73c036e392a Mon Sep 17 00:00:00 2001 From: Andras Slemmer Date: Tue, 5 Dec 2017 11:21:53 +0000 Subject: [PATCH] SSH test workaround --- .../integration-test/kotlin/net/corda/node/SSHServerTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/src/integration-test/kotlin/net/corda/node/SSHServerTest.kt b/node/src/integration-test/kotlin/net/corda/node/SSHServerTest.kt index 0fec826b96..a9e436400c 100644 --- a/node/src/integration-test/kotlin/net/corda/node/SSHServerTest.kt +++ b/node/src/integration-test/kotlin/net/corda/node/SSHServerTest.kt @@ -8,6 +8,7 @@ import net.corda.core.flows.* import net.corda.core.identity.Party import net.corda.core.utilities.ProgressTracker import net.corda.core.utilities.getOrThrow +import net.corda.core.utilities.toHex import net.corda.core.utilities.unwrap import net.corda.nodeapi.User import net.corda.testing.driver.driver @@ -145,7 +146,7 @@ class SSHServerTest : IntegrationTest() { val response = String(Streams.readAll(channel.inputStream)) // There are ANSI control characters involved, so we want to avoid direct byte to byte matching. - assertThat(response.lines()).filteredOn( { it.contains("Done")}).hasSize(1) + assertThat(response.lines()).filteredOn( { it.contains("Done")}).size().isGreaterThanOrEqualTo(1) } }