diff --git a/Tests/Segment-Tests/Analytics_Tests.swift b/Tests/Segment-Tests/Analytics_Tests.swift index ec943bc0..a6062bd6 100644 --- a/Tests/Segment-Tests/Analytics_Tests.swift +++ b/Tests/Segment-Tests/Analytics_Tests.swift @@ -304,7 +304,8 @@ final class Analytics_Tests: XCTestCase { } func testFlush() { - let analytics = Analytics(configuration: Configuration(writeKey: "test")) + // Use a specific writekey to this test so we do not collide with other cached items. + let analytics = Analytics(configuration: Configuration(writeKey: "testFlush_do_not_reuse_this_writekey")) waitUntilStarted(analytics: analytics)