Commit dfecef5
committed
test(hooks): accept the timed-out PowerShell outcome
runHook has three outcomes for the PowerShell case: pwsh ran, pwsh is not
installed, or pwsh was still starting when the hook budget expired. The
assertion covered only the first two, so a saturated CI runner failed here
with a bare "expected false to be true" that named nothing.
The timeout path returns allow with empty stdout and stderr, so neither
branch matched. All three outcomes confirm the PowerShell spawn path was
taken, which is what the test is for.1 parent 6b14a98 commit dfecef5
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
152 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
153 | 160 | | |
154 | 161 | | |
155 | 162 | | |
0 commit comments