File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed
Sources/IssueReporting/Internal Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 8888 @Test func withExpectedIssueDoesNotFail( ) {
8989 withExpectedIssue { }
9090 }
91+
92+ @Test func withExpectedIssueDoesNotFailAsync( ) async {
93+ await withExpectedIssue {
94+ await Task . yield ( )
95+ }
96+ }
9197 }
9298 #endif
93-
9499#endif
95100
96101private struct Failure : Error { }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ extension String {
3838
3939 For more information (and workarounds), see " Testing gotchas " :
4040
41- https://pointfreeco.github.io /swift-dependencies/main/documentation/dependencies/testing#Testing-gotchas
41+ https://swiftpackageindex.com/pointfreeco /swift-dependencies/main/documentation/dependencies/testing#Testing-gotchas
4242 """
4343
4444 return isEmpty
Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ func _withKnownIssue(
148148 To fix this, add " IssueReportingTestSupport " as a dependency to your test target.
149149 """
150150 )
151+ try? body( )
151152 #endif
152153 return
153154 }
@@ -221,6 +222,7 @@ func _withKnownIssue(
221222 To fix this, add " IssueReportingTestSupport " as a dependency to your test target.
222223 """
223224 )
225+ try? await body ( )
224226 #endif
225227 return
226228 }
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ func _XCTFail(
3333 #endif
3434 printError (
3535 """
36- \( file) : \( line) : A failure was recorded without linking the XCTest framework.
36+ \( file) : \( line) : A failure was recorded without linking the XCTest framework \
37+ \( message. isEmpty ? " " : " : \( message) " )
3738
3839 To fix this, add " IssueReportingTestSupport " as a dependency to your test target.
3940 """
You can’t perform that action at this time.
0 commit comments