Wait for server threads to finish

This commit is contained in:
Nobuyoshi Nakada 2024-07-29 17:27:47 +09:00 committed by Hiroshi SHIBATA
parent 0afbc73b2a
commit 30f57637ee
Notes: git 2024-07-29 23:34:01 +00:00

View File

@ -41,8 +41,9 @@ module TestNetHTTPUtils
end end
def shutdown def shutdown
@thread.kill if @thread @thread&.kill
@server.close if @server @server&.close
@thread&.join
end end
def mount(path, proc) def mount(path, proc)