Skip to content

Commit 52636dd

Browse files
committed
Make SKSwiftPMWorkspaceTests build in Swift 6 mode
1 parent dd0d37c commit 52636dd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/SKTestSupport/TestSourceKitLSPClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import XCTest
2222

2323
extension SourceKitLSPServer.Options {
2424
/// The default SourceKitLSPServer options for testing.
25-
public static var testDefault = Self(swiftPublishDiagnosticsDebounceDuration: 0)
25+
public static let testDefault = Self(swiftPublishDiagnosticsDebounceDuration: 0)
2626
}
2727

2828
/// A mock SourceKit-LSP client (aka. a mock editor) that behaves like an editor

Sources/SKTestSupport/Utils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public func testScratchDir(testName: String = #function) throws -> URL {
7070
/// The temporary directory will be deleted at the end of `directory` unless the
7171
/// `SOURCEKITLSP_KEEP_TEST_SCRATCH_DIR` environment variable is set.
7272
public func withTestScratchDir<T>(
73-
_ body: @Sendable (AbsolutePath) async throws -> T,
73+
@_inheritActorContext _ body: @Sendable (AbsolutePath) async throws -> T,
7474
testName: String = #function
7575
) async throws -> T {
7676
let scratchDirectory = try testScratchDir(testName: testName)

Tests/SKSwiftPMWorkspaceTests/SwiftPMBuildSystemTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import XCTest
2424
import struct PackageModel.BuildFlags
2525

2626
#if canImport(SPMBuildCore)
27-
import SPMBuildCore
27+
@preconcurrency import SPMBuildCore
2828
#endif
2929

3030
fileprivate extension SwiftPMBuildSystem {

0 commit comments

Comments
 (0)