You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to unit test a Workflow that inherits from SessionWorkflow using RenderTester#testRender I get this error:
SessionWorkflow should never call initialState without the CoroutineScope.
java.lang.IllegalStateException: SessionWorkflow should never call initialState without the CoroutineScope.
at com.squareup.workflow1.SessionWorkflow.initialState(SessionWorkflow.kt:82)
at com.squareup.workflow1.testing.RenderTesterKt.testRender(RenderTester.kt:29)
It looks like RenderTester#testRender is calling an overloaded initialState method that SessionWorkflow doesn't support, see
When trying to unit test a Workflow that inherits from
SessionWorkflow
usingRenderTester#testRender
I get this error:It looks like
RenderTester#testRender
is calling an overloadedinitialState
method thatSessionWorkflow
doesn't support, seeworkflow-kotlin/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/SessionWorkflow.kt
Lines 78 to 84 in b7e37bc
The text was updated successfully, but these errors were encountered: