Skip to content

Commit d6f6cd5

Browse files
authored
chore: Mark mocked HTTP client final to silence Sendable warning (#1023)
1 parent 0129637 commit d6f6cd5

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Tests/ClientRuntimeTests/NetworkingTests/Http/MockHttpClientEngine.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
/*
2-
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3-
* SPDX-License-Identifier: Apache-2.0.
4-
*/
1+
//
2+
// Copyright Amazon.com Inc. or its affiliates.
3+
// All Rights Reserved.
4+
//
5+
// SPDX-License-Identifier: Apache-2.0
6+
//
57

68
import Smithy
79
import SmithyHTTPAPI
810
import Foundation
911
import AwsCommonRuntimeKit
1012
@testable import ClientRuntime
1113

12-
class MockHttpClientEngine: HTTPClient {
14+
final class MockHttpClientEngine: HTTPClient {
1315
func successHttpResponse(request: SmithyHTTPAPI.HTTPRequest) -> HTTPResponse {
1416
return HTTPResponse(headers: request.headers, body: ByteStream.empty, statusCode: HTTPStatusCode.ok)
1517
}

0 commit comments

Comments
 (0)