Skip to content

Commit 5e005da

Browse files
Testing module is not included in 6.0 SDK
1 parent 80821fe commit 5e005da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Plugins/PackageToJS/Tests/ExampleTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ extension Trait where Self == ConditionTrait {
289289
}
290290
}
291291

292+
#if compiler(>=6.1)
292293
// TODO: Remove triple restriction once swift-testing is shipped in p1-threads SDK
293294
@Test(.requireSwiftSDK(triple: "wasm32-unknown-wasi"))
294295
func continuationLeakInTest_SwiftTesting() throws {
@@ -300,4 +301,5 @@ extension Trait where Self == ConditionTrait {
300301
try runSwift(["package", "--disable-sandbox", "--swift-sdk", swiftSDKID, "js", "test"], [:])
301302
}
302303
}
304+
#endif
303305
}

0 commit comments

Comments
 (0)