mirror of
https://github.com/lloeki/nanoserve.git
synced 2025-12-06 11:14:40 +01:00
Close listening socket outside of start
This commit is contained in:
parent
eea9588742
commit
53988be5ee
2 changed files with 8 additions and 3 deletions
|
|
@ -24,6 +24,8 @@ class TestNanoServe < MiniTest::Test
|
|||
s.close
|
||||
end
|
||||
|
||||
r.stop
|
||||
|
||||
assert_equal(uuid, buf)
|
||||
end
|
||||
|
||||
|
|
@ -50,6 +52,8 @@ class TestNanoServe < MiniTest::Test
|
|||
Net::HTTP.get(uri + "test?uuid=#{uuid}")
|
||||
end
|
||||
|
||||
r.stop
|
||||
|
||||
assert_equal(uuid, req.first.params['uuid'])
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue