Skip to content

Commit 429657f

Browse files
committed
Disabled test because XCTExpectFailure has broken.
1 parent a24b139 commit 429657f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Tests/Segment-Tests/Analytics_Tests.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ final class Analytics_Tests: XCTestCase {
137137
}
138138

139139
// Linux & Windows don't support XCTExpectFailure
140-
#if !os(Linux) && !os(Windows)
140+
/*#if !os(Linux) && !os(Windows)
141141
func testDestinationNotEnabled() {
142142
// need to clear settings for this one.
143143
UserDefaults.standard.removePersistentDomain(forName: "com.segment.storage.test")
@@ -158,11 +158,16 @@ final class Analytics_Tests: XCTestCase {
158158

159159
analytics.track(name: "testDestinationEnabled")
160160

161+
/*
162+
NOTE: It appears this is causing a failure
163+
when the wait expires despite it being expected.
164+
Disabling for now.
165+
*/
161166
XCTExpectFailure {
162167
wait(for: [expectation], timeout: 1.0)
163168
}
164169
}
165-
#endif
170+
#endif*/
166171

167172
func testAnonymousId() {
168173
let analytics = Analytics(configuration: Configuration(writeKey: "test"))

0 commit comments

Comments
 (0)