File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed
Tests/IssueReportingTests Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change 47
47
}
48
48
}
49
49
50
- @Test func withExpectedAsyncIssue_reportIssue ( ) async {
50
+ @Test func withExpectedIssue_reportIssue_Async ( ) async {
51
51
await withExpectedIssue {
52
52
await Task . yield ( )
53
53
reportIssue ( )
73
73
}
74
74
}
75
75
76
+ @Test func withExpectedIssue_NoMessage_NoIssue_Async( ) async {
77
+ await withKnownIssue {
78
+ await withExpectedIssue {
79
+ await Task . yield ( )
80
+ }
81
+ } matching: { issue in
82
+ issue. description == " Known issue was not recorded "
83
+ }
84
+ }
85
+
76
86
@Test func withExpectedIssue_CustomMessage_NoIssue( ) {
77
87
withKnownIssue {
78
88
withExpectedIssue ( " This didn't fail " ) {
82
92
}
83
93
}
84
94
85
- @Test func withExpectedIssue_IsIntermittent( ) async throws {
95
+ @Test func withExpectedIssue_CustomMessage_NoIssue_Async( ) async {
96
+ await withKnownIssue {
97
+ await withExpectedIssue ( " This didn't fail " ) {
98
+ await Task . yield ( )
99
+ }
100
+ } matching: { issue in
101
+ issue. description == " Known issue was not recorded: This didn't fail "
102
+ }
103
+ }
104
+
105
+ @Test func withExpectedIssue_IsIntermittent( ) {
86
106
withExpectedIssue ( isIntermittent: true ) {
87
107
}
88
108
}
109
+
110
+ @Test func withExpectedIssue_IsIntermittent_Async( ) async {
111
+ await withExpectedIssue ( isIntermittent: true ) {
112
+ await Task . yield ( )
113
+ }
114
+ }
89
115
}
90
116
91
117
private struct Failure : Error { }
You can’t perform that action at this time.
0 commit comments