Skip to content

Commit

Permalink
Fix isolation issue in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMardon committed Jun 18, 2024
1 parent f5edd17 commit a42b349
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ConditionalRetrier_SingleOutputFallibleRetrierTests:

// swiftlint:enable type_name

class ConditionalRetrierSpecificTests: XCTestCase {
class ConditionalRetrierSpecificTests: XCTestCase, @unchecked Sendable {

private var instance: ConditionalRetrier<Void>?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import XCTest
@testable import SwiftRetrier

class FallibleRetrierTests<R: Retrier>: XCTestCase {
class FallibleRetrierTests<R: Retrier>: XCTestCase, @unchecked Sendable {

var retrier: ((RetryPolicy, @escaping Job<Void>) -> R)!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import XCTest
import Combine
@testable import SwiftRetrier

class RetrierTests<R: Retrier>: XCTestCase {
class RetrierTests<R: Retrier>: XCTestCase, @unchecked Sendable {

var retrier: ((@escaping Job<Void>) -> R)!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import XCTest
@testable import SwiftRetrier
import Combine

class SingleOutputConditionalRetrierTests<R: SingleOutputRetrier>: XCTestCase {
class SingleOutputConditionalRetrierTests<R: SingleOutputRetrier>: XCTestCase, @unchecked Sendable {

var retrier: ((AnyPublisher<Bool, Never>, Job<Void>) -> R)!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import XCTest
@testable import SwiftRetrier

class SingleOutputFallibleRetrierTests<R: SingleOutputRetrier>: XCTestCase {
class SingleOutputFallibleRetrierTests<R: SingleOutputRetrier>: XCTestCase, @unchecked Sendable {
var retrier: ((RetryPolicy, @escaping Job<Void>) -> R)!

private var instance: R?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import XCTest
@testable import SwiftRetrier

class SingleOutputRetrierTests<R: SingleOutputRetrier>: XCTestCase {
class SingleOutputRetrierTests<R: SingleOutputRetrier>: XCTestCase, @unchecked Sendable {
var retrier: ((@escaping Job<Void>) -> R)!

private var instance: R?
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftRetrierTests/Retriers/RepeaterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Repeater_FallibleRetrierTests: FallibleRetrierTests<Repeater<Void>> {
}
}

class RepeaterTests: XCTestCase {
class RepeaterTests: XCTestCase, @unchecked Sendable {
var retrier: ((TimeInterval, @escaping Job<Void>) -> Repeater<Void>)!

private var instance: Repeater<Void>?
Expand Down

0 comments on commit a42b349

Please sign in to comment.