@@ -175,16 +175,6 @@ final class Analytics_Tests: XCTestCase {
175
175
let outputReader = OutputReaderPlugin ( )
176
176
analytics. add ( plugin: outputReader)
177
177
178
- #if !os(watchOS) && !os(Linux)
179
- /* Disabling this for now; Newer SDKs, it's getting even more delay-ful.
180
- // prime the pump for userAgent, since it's retrieved async.
181
- let vendorSystem = VendorSystem.current
182
- while vendorSystem.userAgent == nil {
183
- RunLoop.main.run(until: Date.distantPast)
184
- }
185
- */
186
- #endif
187
-
188
178
waitUntilStarted ( analytics: analytics)
189
179
190
180
// add a referrer
@@ -207,12 +197,6 @@ final class Analytics_Tests: XCTestCase {
207
197
let referrer = context ? [ " referrer " ] as! [ String : Any ]
208
198
XCTAssertEqual ( referrer [ " url " ] as! String , " https://google.com " )
209
199
210
- // this key not present on watchOS (doesn't have webkit)
211
- #if !os(watchOS)
212
- /* Disabling this for now; Newer SDKs, it's getting even more delay-ful. */
213
- //XCTAssertNotNil(context?["userAgent"], "userAgent missing!")
214
- #endif
215
-
216
200
// these keys not present on linux or Windows
217
201
#if !os(Linux) && !os(Windows)
218
202
XCTAssertNotNil ( context ? [ " app " ] , " app missing! " )
@@ -228,16 +212,6 @@ final class Analytics_Tests: XCTestCase {
228
212
let outputReader = OutputReaderPlugin ( )
229
213
analytics. add ( plugin: outputReader)
230
214
231
- #if !os(watchOS) && !os(Linux)
232
- /* Disabling this for now; Newer SDKs, it's getting even more delay-ful.
233
- // prime the pump for userAgent, since it's retrieved async.
234
- let vendorSystem = VendorSystem.current
235
- while vendorSystem.userAgent == nil {
236
- RunLoop.main.run(until: Date.distantPast)
237
- }
238
- */
239
- #endif
240
-
241
215
waitUntilStarted ( analytics: analytics)
242
216
243
217
// add a referrer
@@ -259,10 +233,6 @@ final class Analytics_Tests: XCTestCase {
259
233
260
234
let referrer = context ? [ " referrer " ] as! [ String : Any ]
261
235
XCTAssertEqual ( referrer [ " url " ] as! String , " https://google.com " )
262
-
263
- /* Disabling this for now; Newer SDKs, it's getting even more delay-ful.
264
- XCTAssertEqual(context?["userAgent"] as! String, "testing user agent")
265
- */
266
236
267
237
// these keys not present on linux
268
238
#if !os(Linux) && !os(Windows)
0 commit comments