Commit 8a001f8
committed
chore(test): wait for mender-connect to exit before restarting in set_limits
The set_limits() helper kills mender-connect and immediately starts a
new instance without waiting for the old process to exit. This creates
a race condition: the old process may still be running (and its WebSocket
still registered as "connected" in deviceconnect) when the new one
starts. wait_for_connect() can then pass on the stale "connected" state
from the old connection, and the subsequent file transfer request hits
an inconsistent state timing out with HTTP 408.
Signed-off-by: pasinskim <marcin.pasinski@northern.tech>1 parent 1f5bdbf commit 8a001f8
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
0 commit comments