Skip to content

Commit ab1e784

Browse files
Tests: Fix test for SWIFT_TESTING_ENABLED environment variable
`SWIFT_PM_TEST_LIBRARY` was renamed to `SWIFT_TESTING_ENABLED` in #7789, but we forgot to update the test because `XCTAssertAsyncNoThrow` always succeeded and we didn't notice the failure.
1 parent 2beb621 commit ab1e784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Fixtures/Miscellaneous/CheckTestLibraryEnvironmentVariable/Tests/CheckTestLibraryEnvironmentVariableTests/CheckTestLibraryEnvironmentVariableTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import XCTest
22

33
final class CheckTestLibraryEnvironmentVariableTests: XCTestCase {
44
func testEnviromentVariable() throws {
5-
let envvar = ProcessInfo.processInfo.environment["SWIFT_PM_TEST_LIBRARY"]
6-
XCTAssertEqual(envvar, "XCTest")
5+
let envvar = ProcessInfo.processInfo.environment["SWIFT_TESTING_ENABLED"]
6+
XCTAssertEqual(envvar, "0")
77
}
88
}

0 commit comments

Comments
 (0)