Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ extension SegmentDestination.UploadTaskInfo {
task.cancel()
application.endBackgroundTask(taskIdentifier)
}
self.taskID = taskIdentifier.rawValue

self.cleanup = {
application.endBackgroundTask(taskIdentifier)
Expand Down
1 change: 0 additions & 1 deletion Sources/Segment/Plugins/SegmentDestination.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public class SegmentDestination: DestinationPlugin {
let task: URLSessionDataTask
// set/used via an extension in iOSLifecycleMonitor.swift
typealias CleanupClosure = () -> Void
var taskID: Int = 0
var cleanup: CleanupClosure? = nil
}

Expand Down
5 changes: 3 additions & 2 deletions Tests/Segment-Tests/Analytics_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ final class Analytics_Tests: XCTestCase {

analytics.track(name: "testDestinationEnabled")

XCTExpectFailure()
wait(for: [expectation], timeout: 1.0)
XCTExpectFailure {
wait(for: [expectation], timeout: 1.0)
}
}
#endif

Expand Down