Skip to content

Commit

Permalink
stopped mixing concurrent and single-threaded properties in tests — i…
Browse files Browse the repository at this point in the history
…t requires an Executor
  • Loading branch information
Miha-x64 committed Feb 26, 2019
1 parent 4c962ad commit b5650eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class CommonTest {
private val controlledCProps = listOf(
cmp,
cmp.map { "text: $it" },
cmp.mapWith(propertyOf("")) { a, b -> a + b },
listOf(cmp, propertyOf(""), propertyOf(""))
cmp.mapWith(concurrentPropertyOf("")) { a, b -> a + b },
listOf(cmp, concurrentPropertyOf(""), concurrentPropertyOf(""))
.mapValueList { vals -> vals.joinToString() }
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ContenededSubscription {
observedState(propertyOf(0, conc)) { p, m -> p.map(m) }

private fun biObservedState(conc: Boolean) =
observedState(propertyOf(0, conc)) { p, m -> p.mapWith(propertyOf(-1)) { v, _ -> m(v) } }
observedState(propertyOf(0, conc)) { p, m -> p.mapWith(propertyOf(-1, conc)) { v, _ -> m(v) } }

private fun listObservedState(conc: Boolean) =
observedState(propertyOf(0, conc)) { p, m -> listOf(p).mapValueList { m(it[0]) } }
Expand Down

0 comments on commit b5650eb

Please sign in to comment.