spec/celluloid/io/unix_server_spec.rb in celluloid-io-0.16.5.pre0 vs spec/celluloid/io/unix_server_spec.rb in celluloid-io-0.17.0
- old
+ new
@@ -1,16 +1,10 @@
require 'spec_helper'
describe Celluloid::IO::UNIXServer do
+ let(:example_port) { assign_port }
- if RUBY_PLATFORM == 'java'
- before(:each) do
- pending "jRuby support"
- fail "Avoid potential deadlock under jRuby"
- end
- end
-
describe "#accept" do
let(:payload) { 'ohai' }
context "inside Celluloid::IO" do
@@ -19,9 +13,10 @@
expect(within_io_actor { Celluloid::IO.evented? }).to be_truthy
end
end
it "accepts a connection and returns a Celluloid::IO::UNIXSocket" do
+ pending if RUBY_PLATFORM == 'java'
with_unix_server do |subject|
thread = Thread.new { UNIXSocket.new(example_unix_sock) }
peer = within_io_actor { subject.accept }
expect(peer).to be_a Celluloid::IO::UNIXSocket