Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error when stopping server on UNIX domain socket, fixes #42
- Loading branch information
1 parent
a359e88
commit 7e8c975
Showing
4 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require File.dirname(__FILE__) + '/../spec_helper' | ||
|
||
describe Connectors::TcpServer do | ||
before do | ||
@connector = Connectors::TcpServer.new('0.0.0.0', 3333) | ||
end | ||
|
||
it "should connect" do | ||
EventMachine.run do | ||
@connector.connect | ||
EventMachine.stop | ||
end | ||
end | ||
|
||
it "should disconnect" do | ||
EventMachine.run do | ||
@connector.connect | ||
@connector.disconnect | ||
EventMachine.stop | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters