File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Tests/SKSwiftPMWorkspaceTests Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import XCTest
22
22
23
23
extension SourceKitLSPServer . Options {
24
24
/// The default SourceKitLSPServer options for testing.
25
- public static var testDefault = Self ( swiftPublishDiagnosticsDebounceDuration: 0 )
25
+ public static let testDefault = Self ( swiftPublishDiagnosticsDebounceDuration: 0 )
26
26
}
27
27
28
28
/// A mock SourceKit-LSP client (aka. a mock editor) that behaves like an editor
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public func testScratchDir(testName: String = #function) throws -> URL {
70
70
/// The temporary directory will be deleted at the end of `directory` unless the
71
71
/// `SOURCEKITLSP_KEEP_TEST_SCRATCH_DIR` environment variable is set.
72
72
public func withTestScratchDir< T> (
73
- _ body: @Sendable ( AbsolutePath) async throws -> T ,
73
+ @ _inheritActorContext _ body: @Sendable ( AbsolutePath) async throws -> T ,
74
74
testName: String = #function
75
75
) async throws -> T {
76
76
let scratchDirectory = try testScratchDir ( testName: testName)
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import XCTest
24
24
import struct PackageModel. BuildFlags
25
25
26
26
#if canImport(SPMBuildCore)
27
- import SPMBuildCore
27
+ @ preconcurrency import SPMBuildCore
28
28
#endif
29
29
30
30
fileprivate extension SwiftPMBuildSystem {
You can’t perform that action at this time.
0 commit comments