Skip to content

Commit

Permalink
Fixed linux exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
bsneed committed May 14, 2024
1 parent 2fa9d6d commit b7433de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/Segment-Tests/StressTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Brandon Sneed on 11/4/21.
//

#if !os(Linux) && !os(tvOS) && !os(watchOS)

import XCTest
@testable import Segment

Expand All @@ -20,7 +22,6 @@ class StressTests: XCTestCase {
}

// Linux doesn't know what URLProtocol is and on tvOS/watchOS it somehow works differently and isn't hit.
#if !os(Linux) && !os(tvOS) && !os(watchOS)
func testDirectoryStorageStress2() throws {
// register our network blocker
guard URLProtocol.registerClass(BlockNetworkCalls.self) else { XCTFail(); return }
Expand Down Expand Up @@ -297,5 +298,6 @@ class StressTests: XCTestCase {
RunLoop.main.run(until: Date.distantPast)
}
}
#endif
}

#endif

0 comments on commit b7433de

Please sign in to comment.