Skip to content

Commit 1e6b531

Browse files
committed
fixing test types
1 parent f2e3317 commit 1e6b531

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Tests/JSONAPITestingTests/Comparisons/DocumentCompareTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ fileprivate typealias TestType2 = ResourceObject<TestDescription2, NoMetadata, N
143143

144144
fileprivate typealias SingleDocument = JSONAPI.Document<SingleResourceBody<TestType>, NoMetadata, NoLinks, Include2<TestType, TestType2>, NoAPIDescription, BasicJSONAPIError<String>>
145145

146-
fileprivate struct TestMetadata: JSONAPI.Meta, CustomStringConvertible {
146+
fileprivate struct TestMetadata: JSONAPI.Meta, CustomStringConvertible, Sendable {
147147
let total: Int
148148

149149
var description: String {
150150
"total: \(total)"
151151
}
152152
}
153153

154-
fileprivate struct TestLinks: JSONAPI.Links {
154+
fileprivate struct TestLinks: JSONAPI.Links, Sendable {
155155
let link: Link<String, NoMetadata>
156156
}
157157

Tests/JSONAPITestingTests/Test Helpers/String+CreatableRawIdType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import JSONAPI
99

10-
private var uniqueStringCounter = 0
10+
nonisolated(unsafe) private var uniqueStringCounter = 0
1111

1212
extension String: CreatableRawIdType {
1313
public static func unique() -> String {

Tests/JSONAPITests/Document/DocumentDecodingErrorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ extension DocumentDecodingErrorTests {
224224
case unknownError
225225
case basic(BasicError)
226226

227-
struct BasicError: Codable, Equatable {
227+
struct BasicError: Codable, Equatable, Sendable {
228228
let code: Int
229229
let description: String
230230
}

Tests/JSONAPITests/Error/GenericJSONAPIErrorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ final class GenericJSONAPIErrorTests: XCTestCase {
132132
}
133133
}
134134

135-
private struct TestPayload: Codable, Equatable, ErrorDictType {
135+
private struct TestPayload: Codable, Equatable, ErrorDictType, Sendable {
136136
let hello: String
137137
let world: Int?
138138

Tests/JSONAPITests/Test Helpers/String+CreatableRawIdType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import JSONAPI
99

10-
private var uniqueStringCounter = 0
10+
nonisolated(unsafe) private var uniqueStringCounter = 0
1111

1212
extension String: CreatableRawIdType {
1313
public static func unique() -> String {

0 commit comments

Comments
 (0)