diff --git a/Tests/AWSSDKSwiftTests/Core/SerializableTests.swift b/Tests/AWSSDKSwiftTests/Core/SerializableTests.swift index a4e181d5124..6dfcb17c36b 100644 --- a/Tests/AWSSDKSwiftTests/Core/SerializableTests.swift +++ b/Tests/AWSSDKSwiftTests/Core/SerializableTests.swift @@ -52,7 +52,7 @@ class SerializableTests: XCTestCase { func testSerializeToDictionaryAndJSON() { let dict = try! A().serializeToDictionary() - let data = try! JSONSerializer().serialize(dict) + let data = try! JSONSerializer.serialize(dict) let jsonObect = try! JSONSerialization.jsonObject(with: data, options: []) as! [String: Any] XCTAssertEqual(dict.count, jsonObect.count) }