Commit c7e32fd
committed
Wait for the RPC Server to start before testing
When creating the RPC Server thread, a dummy event is added to the
event loop. When the event loop has fully started, the dummy event
unregisters itself and allows setup_env() to return.
This fixes a race condition on my system, where test_connect_failed
would fail so fast that the server ioloop didn't start by the time
the test teardown would request the ioloop to stop.1 parent 8630237 commit c7e32fd
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| 84 | + | |
| 85 | + | |
80 | 86 | | |
| 87 | + | |
| 88 | + | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
| |||
0 commit comments