Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
spec: close socket on the exit from the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
niamster committed May 3, 2015
1 parent cc95005 commit a352b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/dcell/socket_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

it "raises exception if address is already in use" do
addr = 'tcp://127.0.0.1:1123'
server = DCell::Socket::server addr, ''
server, raddr = DCell::Socket::server addr, ''
expect {DCell::Socket::server addr, ''}.to raise_error(IOError)
server.close
end
end

0 comments on commit a352b90

Please sign in to comment.