test-utils: Rename repeat to replicate due to name clashes

This commit is contained in:
Andras Slemmer 2016-09-01 17:24:01 +01:00
parent dded4c6e8f
commit 0298ccf0d6
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ class WalletMonitorServiceTests {
is TransactionBuildResult.Failed -> fail(state.message)
}
},
repeat(7) {
replicate(7) {
expect { build: ServiceToClientEvent.Progress -> }
}
),

View File

@ -61,7 +61,7 @@ fun <E> parallel(vararg expectations: ExpectCompose<E>): ExpectCompose<E> = Expe
* @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.
*/
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.