add timeouts to all tests (#5875)

This commit is contained in:
Stefano Franz
2020-02-11 10:14:05 +00:00
committed by GitHub
parent 1d0918cdde
commit b23af5f0d2
485 changed files with 5655 additions and 5625 deletions

View File

@ -16,8 +16,8 @@ import java.nio.charset.StandardCharsets.UTF_8
class BlobInspectorTest {
private val blobInspector = BlobInspector()
@Test
fun `network-parameters file`() {
@Test(timeout=300_000)
fun `network-parameters file`() {
val output = run("network-parameters")
assertThat(output)
.startsWith(SignedDataWithCert::class.java.name)
@ -25,8 +25,8 @@ class BlobInspectorTest {
.contains(CordaX500Name("Notary Service", "Zurich", "CH").toString()) // Name of the notary in the network parameters
}
@Test
fun `node-info file`() {
@Test(timeout=300_000)
fun `node-info file`() {
checkNotOnClassPath("net.corda.nodeapi.internal.SignedNodeInfo")
val output = run("node-info")
assertThat(output)
@ -34,8 +34,8 @@ class BlobInspectorTest {
.contains(CordaX500Name("BankOfCorda", "New York", "US").toString())
}
@Test
fun `WireTransaction with Cash state`() {
@Test(timeout=300_000)
fun `WireTransaction with Cash state`() {
checkNotOnClassPath("net.corda.finance.contracts.asset.Cash\$State")
val output = run("cash-wtx.blob")
assertThat(output)
@ -43,8 +43,8 @@ class BlobInspectorTest {
.contains("net.corda.finance.contracts.asset.Cash\$State")
}
@Test
fun `SignedTransaction with Cash state taken from node db`() {
@Test(timeout=300_000)
fun `SignedTransaction with Cash state taken from node db`() {
checkNotOnClassPath("net.corda.finance.contracts.asset.Cash\$State")
val output = run("cash-stx-db.blob")
assertThat(output)