Skip to content

Commit 3f2f83c

Browse files
committed
Use expectDiagnostics
1 parent f3ef031 commit 3f2f83c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/PackageRegistryTests/RegistryClientTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ fileprivate var availabilityURL = URL("\(registryURL)/availability")
10361036
)
10371037

10381038
// But there should be a warning
1039-
testDiagnostics(observability.diagnostics) { result in
1039+
try expectDiagnostics(observability.diagnostics) { result in
10401040
result.check(diagnostic: .contains("does not match previously recorded value"), severity: .warning)
10411041
}
10421042

@@ -1750,7 +1750,7 @@ fileprivate var availabilityURL = URL("\(registryURL)/availability")
17501750
)
17511751

17521752
// But there should be a warning
1753-
testDiagnostics(observability.diagnostics) { result in
1753+
try expectDiagnostics(observability.diagnostics) { result in
17541754
result.check(diagnostic: .contains("does not match previously recorded value"), severity: .warning)
17551755
}
17561756

@@ -2423,7 +2423,7 @@ fileprivate var availabilityURL = URL("\(registryURL)/availability")
24232423
)
24242424

24252425
// But there should be a warning
2426-
testDiagnostics(observability.diagnostics) { result in
2426+
try expectDiagnostics(observability.diagnostics) { result in
24272427
result.check(diagnostic: .contains("does not match previously recorded value"), severity: .warning)
24282428
}
24292429

0 commit comments

Comments
 (0)