aboutsummaryrefslogtreecommitdiff
path: root/app/src/test/kotlin/com
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-01-05 00:34:11 -0500
committerAllan Wang <me@allanwang.ca>2019-01-05 00:34:11 -0500
commit4c32104d29de32cecf3c9647a8f628bd835e14cf (patch)
treeb9eb4105bf4942742a8b6af10673ae4e940cb78c /app/src/test/kotlin/com
parent5c89202f74f68ee6f273296014b5fff837520246 (diff)
downloadfrost-4c32104d29de32cecf3c9647a8f628bd835e14cf.tar.gz
frost-4c32104d29de32cecf3c9647a8f628bd835e14cf.tar.bz2
frost-4c32104d29de32cecf3c9647a8f628bd835e14cf.zip
Use conflated channels where possible, resolves #1314
Diffstat (limited to 'app/src/test/kotlin/com')
-rw-r--r--app/src/test/kotlin/com/pitchedapps/frost/utils/CoroutineTest.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/utils/CoroutineTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/utils/CoroutineTest.kt
index e7520794..fb302648 100644
--- a/app/src/test/kotlin/com/pitchedapps/frost/utils/CoroutineTest.kt
+++ b/app/src/test/kotlin/com/pitchedapps/frost/utils/CoroutineTest.kt
@@ -150,12 +150,12 @@ class CoroutineTest {
/**
* Not a true throttle, but for things like fetching header badges, we want to avoid simultaneous fetches.
- * As a result, I want to test that the usage of offer along with a rendezvous channel will work as I expect.
+ * As a result, I want to test that the usage of offer along with a conflated channel will work as I expect.
* Events should be consumed when there is no pending consumer on previous elements.
*/
@Test
fun throttledChannel() {
- val channel = Channel<Int>(Channel.RENDEZVOUS)
+ val channel = Channel<Int>(Channel.CONFLATED)
runBlocking {
val deferred = async {
listen(channel) {