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.
1 parent 5e1f667 commit ee043b5Copy full SHA for ee043b5
Tests/SourceKitLSPTests/PullDiagnosticsTests.swift
@@ -16,6 +16,10 @@ import SKTestSupport
16
import XCTest
17
18
final class PullDiagnosticsTests: XCTestCase {
19
+ enum Error: Swift.Error {
20
+ case unexpectedDiagnosticReport
21
+ }
22
+
23
/// Connection and lifetime management for the service.
24
var connection: TestSourceKitServer! = nil
25
@@ -61,8 +65,7 @@ final class PullDiagnosticsTests: XCTestCase {
61
65
}
62
66
63
67
guard case .full(let fullReport) = report else {
64
- XCTFail("Unexpected diagnostics report type: \(report)")
- return
68
+ throw Error.unexpectedDiagnosticReport
69
70
71
return fullReport.items
0 commit comments