Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit 9d0836e

Browse files
committed
Add a failing spec for #70
1 parent 2328451 commit 9d0836e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/async/io/unix_endpoint_spec.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@
3939

4040
server_task.stop
4141
end
42+
43+
it "should not fail to bind if there are no existing bindings on the socket" do
44+
server_task1 = reactor.async do
45+
subject.bind
46+
end
47+
server_task1.stop
48+
49+
server_task2 = reactor.async do
50+
expect do
51+
subject.bind
52+
end.to_not raise_error
53+
end
54+
server_task2.stop
55+
end
4256

4357
it "should fails to bind if there is an existing binding" do
4458
condition = Async::Condition.new

0 commit comments

Comments
 (0)