Skip to content

Commit 33d8864

Browse files
committed
fixing test types
1 parent 3cbf47d commit 33d8864

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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/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)