diff --git a/redwood-testing/src/commonTest/kotlin/app/cash/redwood/testing/ViewRecyclingTester.kt b/redwood-testing/src/commonTest/kotlin/app/cash/redwood/testing/ViewRecyclingTester.kt index d8de07da2f..026120e27f 100644 --- a/redwood-testing/src/commonTest/kotlin/app/cash/redwood/testing/ViewRecyclingTester.kt +++ b/redwood-testing/src/commonTest/kotlin/app/cash/redwood/testing/ViewRecyclingTester.kt @@ -40,6 +40,7 @@ import com.example.redwood.testapp.testing.TestSchemaTestingWidgetFactory import com.example.redwood.testapp.widget.TestSchemaWidgetSystem import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.coroutineScope +import kotlinx.serialization.json.Json /** * Like [TestSchemaTester], but this also hooks up Redwood's protocol mechanism. That's necessary @@ -64,7 +65,7 @@ class ViewRecyclingTester( container = widgetContainer, factory = widgetProtocolFactory, eventSink = { event -> - guestAdapter.sendEvent(event) + guestAdapter.sendEvent(event.toProtocol(Json.Default)) }, )