We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 779a3c3 + eb47ba6 commit 31152deCopy full SHA for 31152de
Tests/SourceKitLSPTests/PullDiagnosticsTests.swift
@@ -132,6 +132,13 @@ final class PullDiagnosticsTests: XCTestCase {
132
133
XCTAssertEqual(actions.count, 1)
134
let action = try XCTUnwrap(actions.first)
135
- XCTAssertEqual(action.title, "add stubs for conformance")
+ // Allow the action message to be the one before or after
136
+ // https://github.com/apple/swift/pull/67909, ensuring this test passes with
137
+ // a sourcekitd that contains the change from that PR as well as older
138
+ // toolchains that don't contain the change yet.
139
+ XCTAssert([
140
+ "add stubs for conformance",
141
+ "do you want to add protocol stubs?"
142
+ ].contains(action.title))
143
}
144
0 commit comments