diff --git a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/Sink.kt b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/Sink.kt index 5afd3983f..b24294964 100644 --- a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/Sink.kt +++ b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/Sink.kt @@ -85,7 +85,7 @@ internal suspend fun < ) { suspendCancellableCoroutine { continuation -> val resumingAction = object : WorkflowAction() { - override fun toString(): String = "sendAndAwaitApplication(${action})" + override fun toString(): String = "sendAndAwaitApplication($action)" override fun Updater.apply() { // Don't execute anything if the caller was cancelled while we were in the queue. diff --git a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkflowAction.kt b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkflowAction.kt index 557b0d878..8613115c9 100644 --- a/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkflowAction.kt +++ b/workflow-core/src/commonMain/kotlin/com/squareup/workflow1/WorkflowAction.kt @@ -63,7 +63,7 @@ public abstract class WorkflowAction { */ public abstract fun Updater.apply() - public override fun toString(): String = "action(${debuggingName})-@${hashCode()}" + public override fun toString(): String = "action($debuggingName)-@${hashCode()}" public companion object { /** diff --git a/workflow-runtime/src/commonTest/kotlin/com/squareup/workflow1/internal/WorkflowNodeTest.kt b/workflow-runtime/src/commonTest/kotlin/com/squareup/workflow1/internal/WorkflowNodeTest.kt index bab07535c..abc8a3efb 100644 --- a/workflow-runtime/src/commonTest/kotlin/com/squareup/workflow1/internal/WorkflowNodeTest.kt +++ b/workflow-runtime/src/commonTest/kotlin/com/squareup/workflow1/internal/WorkflowNodeTest.kt @@ -1151,7 +1151,7 @@ internal class WorkflowNodeTest { @Test fun send_fails_before_render_pass_completed() { class TestAction : WorkflowAction() { override fun Updater.apply() = fail("Expected sink send to fail.") - override val debuggingName: String = "TestAction()" + override val debuggingName: String = "TestAction()" } val workflow = Workflow.stateless { diff --git a/workflow-testing/src/test/java/com/squareup/workflow1/testing/RealRenderTesterTest.kt b/workflow-testing/src/test/java/com/squareup/workflow1/testing/RealRenderTesterTest.kt index a1983810a..099d367c5 100644 --- a/workflow-testing/src/test/java/com/squareup/workflow1/testing/RealRenderTesterTest.kt +++ b/workflow-testing/src/test/java/com/squareup/workflow1/testing/RealRenderTesterTest.kt @@ -188,7 +188,7 @@ internal class RealRenderTesterTest { @Test fun `sending to sink throws when child output expected`() { class TestAction : WorkflowAction() { override fun Updater.apply() {} - override val debuggingName: String = "TestAction" + override val debuggingName: String = "TestAction" } val workflow = Workflow.stateful>(