Repository navigation
Commit 71416ff
Restore E2E test hardening reverted with the Windows PowerShell skips
PR #2328 reset the three E2E test files to their pre-#2318 state
(`b57653c40`) to undo the Windows PowerShell skips we no longer want now
that the host-start hang is actually fixed. But #2318 was a squash that
bundled genuine harness hardening *alongside* those skips, so reverting
wholesale quietly dropped the good parts too. Restore just those, keeping
the skips reverted:
- `ReadScriptLogLineAsync` now yields with `await Task.Delay(100)` at EOF
instead of busy-spinning. At EOF `ReadLineAsync` completes synchronously
with `null`, so the old `while`/`await` loop never released its
thread-pool thread and could starve the scheduler on constrained CI
runners.
- The child-process `Debug-Runspace` readiness poll in
`CanAttachScriptWithPathMappings` sleeps 100ms per iteration so it can't
peg a core during the attach handshake.
- `LSPTestsFixture.DisposeAsync` guards against a null `PsesLanguageClient`
so a startup failure isn't masked by a `NullReferenceException` during
teardown.
These are defense-in-depth independent of the skips, and they matter more
now that we un-skip: a Windows PowerShell server that fails to start
shouldn't busy-spin or NRE on teardown.
Drafted by Copilot (Claude Opus 4.8).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1979e51 commit 71416ff
2 files changed
Lines changed: 29 additions & 6 deletions
File tree
- test/PowerShellEditorServices.Test.E2E
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
243 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
244 | 248 | | |
245 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
246 | 256 | | |
247 | | - | |
248 | 257 | | |
249 | 258 | | |
250 | 259 | | |
| |||
762 | 771 | | |
763 | 772 | | |
764 | 773 | | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
765 | 778 | | |
766 | 779 | | |
767 | 780 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
103 | 113 | | |
104 | 114 | | |
105 | | - | |
| 115 | + | |
106 | 116 | | |
107 | 117 | | |
108 | 118 | | |
0 commit comments