THRIFT-5128 Swift TFramedTransport does not work using present code
Client: Swift
Patch: Jano Svitok
This closes #2047
diff --git a/lib/swift/Tests/ThriftTests/TBinaryProtocolTests.swift b/lib/swift/Tests/ThriftTests/TBinaryProtocolTests.swift
index 56a5572..a50db4e 100644
--- a/lib/swift/Tests/ThriftTests/TBinaryProtocolTests.swift
+++ b/lib/swift/Tests/ThriftTests/TBinaryProtocolTests.swift
@@ -116,7 +116,6 @@
do {
try writeVal.write(to: proto)
try? transport.flush()
-
} catch let error {
XCTAssertFalse(true, "Caught Error attempting to write \(error)")
}
@@ -129,6 +128,7 @@
XCTAssertFalse(true, "Caught Error attempting to read \(error)")
}
}
+
func testUnsafeBitcastUpdate() {
let value: Double = 3.14159
let val: Int64 = 31415926
@@ -162,7 +162,8 @@
("testBoolWriteRead", testBoolWriteRead),
("testStringWriteRead", testStringWriteRead),
("testDataWriteRead", testDataWriteRead),
- ("testStructWriteRead", testStructWriteRead)
+ ("testStructWriteRead", testStructWriteRead),
+ ("testUnsafeBitcastUpdate", testUnsafeBitcastUpdate)
]
}
}