[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:
James Higgs
2020-02-14 17:31:02 +00:00
committed by GitHub
parent 014a03575e
commit 3547b629c3
44 changed files with 248 additions and 82 deletions

View File

@ -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) {