From 9f0b8fcaad88356d32ec36eeeeed9be3e0beadd3 Mon Sep 17 00:00:00 2001 From: Soo Rin Park Date: Mon, 1 Nov 2021 09:16:59 -0600 Subject: [PATCH] Fixed testPublisherWorkflow's TestWorkflow implmentation --- WorkflowCombine/Tests/AnyPublisherTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WorkflowCombine/Tests/AnyPublisherTests.swift b/WorkflowCombine/Tests/AnyPublisherTests.swift index 0791193fe..ad63a0e36 100644 --- a/WorkflowCombine/Tests/AnyPublisherTests.swift +++ b/WorkflowCombine/Tests/AnyPublisherTests.swift @@ -33,9 +33,9 @@ class AnyPublisherTests: XCTestCase { typealias Rendering = Void func render(state: State, context: RenderContext) -> Rendering { - Just(1) - .map { _ in AnyWorkflowAction.noAction } + [1].publisher .eraseToAnyPublisher() + .mapOutput { _ in AnyWorkflowAction.noAction } .running(in: context, key: "123") } }