mirror of
https://github.com/corda/corda.git
synced 2025-06-01 15:10:54 +00:00
test-utils: Rename repeat to replicate due to name clashes
This commit is contained in:
parent
dded4c6e8f
commit
0298ccf0d6
@ -163,7 +163,7 @@ class WalletMonitorServiceTests {
|
|||||||
is TransactionBuildResult.Failed -> fail(state.message)
|
is TransactionBuildResult.Failed -> fail(state.message)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
repeat(7) {
|
replicate(7) {
|
||||||
expect { build: ServiceToClientEvent.Progress -> }
|
expect { build: ServiceToClientEvent.Progress -> }
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
@ -61,7 +61,7 @@ fun <E> parallel(vararg expectations: ExpectCompose<E>): ExpectCompose<E> = Expe
|
|||||||
* @param number The number of events expected.
|
* @param number The number of events expected.
|
||||||
* @param expectation The piece of DSL to run on each event, with the index of the event passed in.
|
* @param expectation The piece of DSL to run on each event, with the index of the event passed in.
|
||||||
*/
|
*/
|
||||||
inline fun <E> repeat(number: Int, expectation: (Int) -> ExpectCompose<E>) = sequence(*Array(number) { expectation(it) })
|
inline fun <E> replicate(number: Int, expectation: (Int) -> ExpectCompose<E>) = sequence(*Array(number) { expectation(it) })
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run the specified DSL against the event stream.
|
* Run the specified DSL against the event stream.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user