mirror of
https://github.com/corda/corda.git
synced 2025-06-13 20:58:19 +00:00
[NOTICK] Add a detekt rule to catch tests with no timeout (#5959)
* [NOTICK] Add a custom detekt rule for tests with no timeout, and fix remaining missing timeouts * [NOTICK] Add a test for custom detekt rules and tidying * add timeout annotation to new test Co-authored-by: Stefano Franz <roastario@gmail.com>
This commit is contained in:
@ -77,7 +77,7 @@ class TutorialTestDSL {
|
||||
|
||||
// DOCSTART 2
|
||||
// This example test will fail with this exception.
|
||||
@Test(expected = IllegalStateException::class)
|
||||
@Test(expected = IllegalStateException::class, timeout=300_000)
|
||||
fun simpleCP() {
|
||||
val inState = getPaper()
|
||||
ledgerServices.ledger(dummyNotary.party) {
|
||||
@ -92,7 +92,7 @@ class TutorialTestDSL {
|
||||
|
||||
// DOCSTART 3
|
||||
// This example test will fail with this exception.
|
||||
@Test(expected = TransactionVerificationException.ContractRejection::class)
|
||||
@Test(expected = TransactionVerificationException.ContractRejection::class, timeout=300_000)
|
||||
fun simpleCPMove() {
|
||||
val inState = getPaper()
|
||||
ledgerServices.ledger(dummyNotary.party) {
|
||||
|
Reference in New Issue
Block a user