Commit 2b01b54
[System] Fix ClientWebSocketTest to not throw exceptions in the constructor, but instead in the individual tests. Fixes #47167. (mono#4180)
Finding a free port on watchOS fails with a PlatformNotSupportedException, but if the exception is thrown in the constructor, the ExpectedException attribute isn't taken into account, causing the test to error out. https://bugzilla.xamarin.com/show_bug.cgi?id=471671 parent 0e7e6ac commit 2b01b54
File tree
1 file changed
+19
-3
lines changed- mcs/class/System/Test/System.Net.WebSockets
1 file changed
+19
-3
lines changedLines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
| |||
158 | 165 | | |
159 | 166 | | |
160 | 167 | | |
161 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
162 | 174 | | |
163 | 175 | | |
164 | 176 | | |
| |||
172 | 184 | | |
173 | 185 | | |
174 | 186 | | |
175 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
176 | 192 | | |
177 | 193 | | |
178 | 194 | | |
| |||
0 commit comments