File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,11 @@ final class BackgroundIndexingTests: XCTestCase {
245
245
)
246
246
247
247
let dependencyUrl = try XCTUnwrap (
248
- FileManager . default. findFiles ( named: " MyDependency.swift " , in: project. scratchDirectory) . only
248
+ FileManager . default. findFiles (
249
+ named: " MyDependency.swift " ,
250
+ in: project. scratchDirectory. appendingPathComponent ( " .build " ) . appendingPathComponent ( " index-build " )
251
+ . appendingPathComponent ( " checkouts " )
252
+ ) . only
249
253
)
250
254
let dependencyUri = DocumentURI ( dependencyUrl)
251
255
let testFileUri = try project. uri ( for: " Test.swift " )
@@ -1256,9 +1260,11 @@ final class BackgroundIndexingTests: XCTestCase {
1256
1260
try await project. testClient. send ( PollIndexRequest ( ) )
1257
1261
project. testClient. send (
1258
1262
DidChangeWatchedFilesNotification (
1259
- changes: FileManager . default. findFiles ( named: " Dependency.swift " , in: project. scratchDirectory) . map {
1260
- FileEvent ( uri: DocumentURI ( $0) , type: . changed)
1261
- }
1263
+ changes: FileManager . default. findFiles (
1264
+ named: " Dependency.swift " ,
1265
+ in: project. scratchDirectory. appendingPathComponent ( " .build " ) . appendingPathComponent ( " index-build " )
1266
+ . appendingPathComponent ( " checkouts " )
1267
+ ) . map { FileEvent ( uri: DocumentURI ( $0) , type: . changed) }
1262
1268
)
1263
1269
)
1264
1270
You can’t perform that action at this time.
0 commit comments