Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix tests with blocks running on sender #47

Merged
merged 2 commits into from

3 participants

@halorgium
Owner

With the change in celluloid/celluloid#55, this is needed.

@coveralls

Changes Unknown when pulling 5e4d2ac on halorgium:blocks-on-caller into ** on celluloid:master**.

View Details

@tarcieri tarcieri merged commit f4209c2 into celluloid:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +1 −0  spec/celluloid/io/tcp_socket_spec.rb
  2. +9 −0 spec/spec_helper.rb
View
1  spec/celluloid/io/tcp_socket_spec.rb
@@ -108,6 +108,7 @@
end
it "raises IOError when partial reading from a socket the peer closed" do
+ pending "async block running on receiver"
with_connected_sockets do |subject, peer|
actor = ExampleActor.new
begin
View
9 spec/spec_helper.rb
@@ -8,6 +8,14 @@
logfile = File.open(File.expand_path("../../log/test.log", __FILE__), 'a')
Celluloid.logger = Logger.new(logfile)
+RSpec.configure do |config|
+ config.before do
+ Celluloid.shutdown
+ Celluloid.boot
+ FileUtils.rm("/tmp/cell_sock") if File.exist?("/tmp/cell_sock")
+ end
+end
+
# FIXME: Hax until test termination can be cleaned up
module Celluloid
class << self
@@ -17,6 +25,7 @@ def shutdown; end # hax: noop!
class ExampleActor
include Celluloid::IO
+ execute_block_on_receiver :wrap
def wrap
yield
Something went wrong with that request. Please try again.