From 2ec53c04948a09f4a232d0d4e0f1b605d012cd71 Mon Sep 17 00:00:00 2001 From: Josh Elkins Date: Fri, 26 Jan 2024 16:17:57 -0600 Subject: [PATCH] Fix tests --- .../amazon/smithy/aws/swift/codegen/EventStreamTests.kt | 3 +-- .../aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt index 3da0a88d099..133d7629ecb 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/EventStreamTests.kt @@ -188,8 +188,7 @@ extension EventStreamTestClientTypes.TestStream: ClientRuntime.MessageUnmarshall val context = setupTests("eventstream.smithy", "aws.protocoltests.restjson#TestService") val contents = getFileContents(context.manifest, "/Example/EventStreamTestClient.swift") var expected = """ - public func testStreamOp(input: TestStreamOpInput) async throws -> TestStreamOpOutput - { + public func testStreamOp(input: TestStreamOpInput) async throws -> TestStreamOpOutput { let context = ClientRuntime.HttpContextBuilder() .withEncoder(value: encoder) .withDecoder(value: decoder) diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt index 8e37273869d..b5d517e4cba 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AWSQueryOperationStackTest.kt @@ -20,8 +20,7 @@ class AWSQueryOperationStackTest { val contents = getFileContents(context.manifest, "/Example/QueryProtocolClient.swift") contents.shouldSyntacticSanityCheck() val expectedContents = """ - public func noInputAndOutput(input: NoInputAndOutputInput) async throws -> NoInputAndOutputOutput - { + public func noInputAndOutput(input: NoInputAndOutputInput) async throws -> NoInputAndOutputOutput { let context = ClientRuntime.HttpContextBuilder() .withEncoder(value: encoder) .withDecoder(value: decoder)