- Notifications
You must be signed in to change notification settings - Fork1k
Commit5807fe0
authored
test: prevent TestAgent_ReconnectingPTY connection reporting check from interfering (#20210)
When we added support for connection tracking in the Workspace agent, we modified the ReconnectingPTY tests to add an initial connection that we immediately hang up and check that connections are logged.In the case of `screen`-based pty handling, hanging up the initial connection can race with the initial attachment to the `screen` process, and cause that process to exit early. This leaves subsequent connections to the same session ID to fail.In this PR we just use different pty session IDs so that the initial connections we do to verify logging don't interfere with the rest of the test._Arguably_ it's a bug in our Reconnecting PTY code that hanging up immediately can leave the system in a weird state, but we do eventually recover and error out, so I don't think it's worth trying to fix.1 parente2076be commit5807fe0
2 files changed
+7
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1807 | 1807 |
| |
1808 | 1808 |
| |
1809 | 1809 |
| |
| 1810 | + | |
1810 | 1811 |
| |
1811 | 1812 |
| |
1812 | 1813 |
| |
1813 | 1814 |
| |
1814 |
| - | |
| 1815 | + | |
1815 | 1816 |
| |
1816 | 1817 |
| |
1817 | 1818 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
| |||
62 | 63 |
| |
63 | 64 |
| |
64 | 65 |
| |
| 66 | + | |
65 | 67 |
| |
66 | 68 |
| |
67 | 69 |
| |
| |||
173 | 175 |
| |
174 | 176 |
| |
175 | 177 |
| |
| 178 | + | |
176 | 179 |
| |
177 | 180 |
| |
178 | 181 |
| |
| |||
182 | 185 |
| |
183 | 186 |
| |
184 | 187 |
| |
| 188 | + | |
185 | 189 |
| |
186 | 190 |
| |
187 | 191 |
| |
| |||
403 | 407 |
| |
404 | 408 |
| |
405 | 409 |
| |
| 410 | + | |
406 | 411 |
| |
407 | 412 |
| |
408 | 413 |
|
0 commit comments
Comments
(0)