Commit 5cdf70a
committed
Fix UnixSocketTest#resist_dsd_restart
Avoid sending too many metrics to a closed socket, to avoid a race
condition with the lastException reset.
Occasionally, two metrics will be sent to the client after the server
socket was removed. First one triggers an exception and causes the
send loop to break. Test case then resets the lastException variable,
while the client is still running and has another message buffered. If
that is delivered before the server is started, it triggers another
exception and causes nullValue() check to fail and the end of the test
case.1 parent e4fc80f commit 5cdf70a
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | | - | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
0 commit comments