spec/async/container/forked_spec.rb in async-container-0.15.0 vs spec/async/container/forked_spec.rb in async-container-0.16.0

- old
+ new

@@ -22,10 +22,12 @@ require "async/container/forked" require_relative 'shared_examples' RSpec.describe Async::Container::Forked, if: Async::Container.fork? do + subject {described_class.new} + it_behaves_like Async::Container it "can restart child" do trigger = IO.pipe pids = IO.pipe @@ -45,10 +47,10 @@ end thread.kill thread.join - expect(subject.statistics.spawns).to be == 3 + expect(subject.statistics.spawns).to be == 1 expect(subject.statistics.restarts).to be == 2 end it "should be multiprocess" do expect(described_class).to be_multiprocess