Skip to content

Commit 4a4c114

Browse files
committed
Replace \\ by \ when comparing file paths testCancellation
Undo the escaping of `\` in paths on Windows.
1 parent 0f5727f commit 4a4c114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftSourceKitPluginTests/SwiftSourceKitPluginTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
329329
try await fulfillmentOfOrThrow(slowCompletionResultReceived, timeout: 30)
330330
} hook: { request in
331331
// Check that we aren't matching against a request sent by something else that has handle to the same sourcekitd.
332-
assertContains(request.description, path)
332+
assertContains(request.description.replacing(#"\\"#, with: #"\"#), path)
333333
slowCompletionRequestSent.fulfill()
334334
}
335335

0 commit comments

Comments
 (0)