From 076ffe458029b19a62d3e65b30a4ca68be4deb80 Mon Sep 17 00:00:00 2001 From: Nicki Stone Date: Tue, 20 Jul 2021 16:23:19 -0700 Subject: [PATCH] fix: update unit tests to conform to error (#264) --- .../ec2query/Ec2QueryHttpResponseBindingErrorGeneratorTests.kt | 2 +- .../restxml/AWSRestXMLHttpResponseBindingErrorGeneratorTests.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/Ec2QueryHttpResponseBindingErrorGeneratorTests.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/Ec2QueryHttpResponseBindingErrorGeneratorTests.kt index ec61c0b4463..d03bd427582 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/Ec2QueryHttpResponseBindingErrorGeneratorTests.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/Ec2QueryHttpResponseBindingErrorGeneratorTests.kt @@ -16,7 +16,7 @@ class Ec2QueryHttpResponseBindingErrorGeneratorTests { contents.shouldSyntacticSanityCheck() val expectedContents = """ - public enum GreetingWithErrorsOutputError: Equatable { + public enum GreetingWithErrorsOutputError: Swift.Error, Equatable { case complexError(ComplexError) case invalidGreeting(InvalidGreeting) case unknown(UnknownAWSHttpServiceError) diff --git a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGeneratorTests.kt b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGeneratorTests.kt index b6531c3ad1c..4ed518b581e 100644 --- a/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGeneratorTests.kt +++ b/codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGeneratorTests.kt @@ -17,7 +17,7 @@ class AWSRestXMLHttpResponseBindingErrorGeneratorTests { contents.shouldSyntacticSanityCheck() val expectedContents = """ - public enum GreetingWithErrorsOutputError: Equatable { + public enum GreetingWithErrorsOutputError: Swift.Error, Equatable { case complexXMLError(ComplexXMLError) case invalidGreeting(InvalidGreeting) case unknown(UnknownAWSHttpServiceError)