test: bound serve_in_thread teardown to prevent CI hangs
#1892
+7
−2
serve_in_thread teardown to prevent CI hangs
#1892