Skip to content

Commit 68412bd

Browse files
committed
Clean up RenderWorkflowInTest
1 parent 268daed commit 68412bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

workflow-runtime/src/commonTest/kotlin/com/squareup/workflow1/RenderWorkflowInTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class RenderWorkflowInTest {
5151
val workflow = Workflow.stateless<String, Nothing, String> { "props: $it" }
5252
// Don't allow the workflow runtime to actually start.
5353

54-
val renderings = renderWorkflowIn(workflow, TestScope(), props) {}
54+
val renderings = renderWorkflowIn(workflow, pausedTestScope, props) {}
5555
assertEquals("props: foo", renderings.value.rendering)
5656
}
5757

@@ -180,7 +180,6 @@ class RenderWorkflowInTest {
180180
}
181181
sink.send("unchanging state")
182182
sink.send("unchanging state")
183-
pausedTestScope.advanceUntilIdle()
184183
scope.cancel()
185184

186185
assertFalse(snapped)

0 commit comments

Comments
 (0)