Repository navigation
Commit f3bb666
fix(server): stopping a preview server no longer depends on the test worker's pid
The stop path compared the fake process table in PortScanner tests against
the real process.pid, so a test failed with shared-group whenever the worker
was assigned one of the fixture pids. The server pid is now read from
HostProcess.ProcessId, which defaults to process.pid, and tests with a fake
table provide a fixed one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 8de2f7c commit f3bb666
3 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
881 | 886 | | |
882 | 887 | | |
883 | 888 | | |
884 | | - | |
| 889 | + | |
885 | 890 | | |
886 | | - | |
| 891 | + | |
887 | 892 | | |
888 | 893 | | |
889 | 894 | | |
| |||
904 | 909 | | |
905 | 910 | | |
906 | 911 | | |
| 912 | + | |
907 | 913 | | |
908 | 914 | | |
909 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
510 | 511 | | |
511 | 512 | | |
512 | 513 | | |
| |||
1175 | 1176 | | |
1176 | 1177 | | |
1177 | 1178 | | |
1178 | | - | |
| 1179 | + | |
1179 | 1180 | | |
1180 | 1181 | | |
1181 | 1182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| |||
0 commit comments