mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
add timeouts to all tests (#5875)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user