Commit 3947017
committed
Switch to current thread runtime
This switches to use the current thread runtime in tests, to avoid
spawning additional threads.
An interesting side effect of this change alone is that the tests hang
waiting for the joinhandle of the `MysqlIntermediary::run_on_tcp`
thread, which never returns. This seems to be because the runtime
hasn't finished cleaning up by the time `block_on` exits, so the tcp
connection remains open. Calling `rt.shutdown_background` immediately
after `rt.block_on` fixes this.1 parent 073d548 commit 3947017
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
0 commit comments