Skip to content

Commit 88bed0e

Browse files
authored
Merge pull request #228 from benlangmuir/collision-redemption
[test] Fix test broken by collision of recent changes
2 parents ed7e9ac + 19f4a22 commit 88bed0e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/SourceKitTests/LocalSwiftTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,9 @@ final class LocalSwiftTests: XCTestCase {
483483
XCTFail("Expected code actions as response")
484484
return
485485
}
486-
XCTAssertEqual(codeActions.count, 1)
487-
let fixit = codeActions.first!
486+
let quickFixes = codeActions.filter{ $0.kind == .quickFix }
487+
XCTAssertEqual(quickFixes.count, 1)
488+
let fixit = quickFixes.first!
488489

489490
// Expected Fix-it: Replace `let a` with `_` because it's never used
490491
let expectedTextEdit = TextEdit(range: Position(line: 1, utf16index: 2)..<Position(line: 1, utf16index: 7), newText: "_")

0 commit comments

Comments
 (0)