Commit a383c77
authored
Catch
Our flaky extension command test seems to be flaky because sometimes
another task gets queued, and since it runs in the foreground it cancels
that task. Interactively, this happens in the first loop (with
`DoOneRepl`) which catches the cancellation exception; but when under
tests that is a no-op, so it happens in the second loop. Hence we should
duplicate the same logic and so catch that exception.OperationCanceledException in both command loops (#1850)1 parent b30934e commit a383c77
File tree
3 files changed
+15
-3
lines changed- src
- PowerShellEditorServices.Hosting/Commands
- PowerShellEditorServices/Services/PowerShell/Host
- test/PowerShellEditorServices.Test/Extensions
3 files changed
+15
-3
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
| 232 | + | |
232 | 233 | | |
| 234 | + | |
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
775 | 782 | | |
776 | 783 | | |
777 | 784 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
113 | | - | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
0 commit comments