Skip to content

Commit d65f2ce

Browse files
author
Ryan Dingman
committed
Change testSlowDripRedirectedOutputRedirectToSequence to guarding against the availability of SubprocessSpan like the other tests.
1 parent ae0de61 commit d65f2ce

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Tests/SubprocessTests/SubprocessTests+Unix.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,10 @@ extension SubprocessUnixTests {
666666
#expect(catResult.standardError == expected)
667667
}
668668

669-
@Test(.enabled(if: hasSubprocessSpan, "This test requires SubprocessSpan"))
670-
func testSlowDripRedirectedOutputRedirectToSequence() async throws {
669+
@Test func testSlowDripRedirectedOutputRedirectToSequence() async throws {
670+
guard #available(SubprocessSpan , *) else {
671+
return
672+
}
671673
let threshold: Double = 0.5
672674

673675
let script = """

Tests/SubprocessTests/TestSupport.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,3 @@ internal func directory(_ lhs: String, isSameAs rhs: String) -> Bool {
4242

4343
return canonicalLhs == canonicalRhs
4444
}
45-
46-
internal var hasSubprocessSpan: Bool {
47-
if #available(SubprocessSpan , *) {
48-
true
49-
} else {
50-
false
51-
}
52-
}

0 commit comments

Comments
 (0)