Skip to content

Commit 16b8162

Browse files
Add more timeout for test method.
1 parent 20fdbaa commit 16b8162

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

swift-sdk/Internal/RequestHandlerProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import Foundation
66

77
/// `InternalIterableAPI` will delegate all network related calls to this protocol.
8-
protocol RequestHandlerProtocol: class {
8+
protocol RequestHandlerProtocol: AnyObject {
99
var offlineMode: Bool { get set }
1010

1111
func start()

tests/offline-events-tests/HealthMonitorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class HealthMonitorTests: XCTestCase {
6767

6868
internalAPI.track("myEvent")
6969
internalAPI.track("myEvent2").onSuccess { _ in
70-
DispatchQueue.main.async {
70+
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
7171
internalAPI.track("myEvent3")
7272
}
7373
}

0 commit comments

Comments
 (0)