We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67bbc9e commit 7afad57Copy full SHA for 7afad57
Tests/SentryTests/SentrySessionTests.swift
@@ -106,15 +106,15 @@ class SentrySessionTestsSwift: XCTestCase {
106
XCTAssertNil(SentrySession(jsonObject: serialized))
107
}
108
109
- func testSerialize_Bools() {
+ func testSerialize_Bools() throws {
110
let session = SentrySession(releaseName: "", distinctId: "some-id")
111
112
var json = session.serialize()
113
json["init"] = 2
114
115
- let session2 = SentrySession(jsonObject: json)
+ let session2 = try XCTUnwrap(SentrySession(jsonObject: json))
116
117
- let result = session2!.serialize()
+ let result = session2.serialize()
118
119
XCTAssertTrue(result["init"] as? Bool ?? false)
120
XCTAssertNotEqual(2, result["init"] as? NSNumber ?? 2)
0 commit comments