[前][次][番号順一覧][スレッド一覧]

ruby-changes:46879

From: eregon <ko1@a...>
Date: Fri, 2 Jun 2017 02:26:03 +0900 (JST)
Subject: [ruby-changes:46879] eregon:r58994: Remove bad spec which cannot behave nicely in a multi-process environment

eregon	2017-06-02 02:26:00 +0900 (Fri, 02 Jun 2017)

  New Revision: 58994

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58994

  Log:
    Remove bad spec which cannot behave nicely in a multi-process environment
    
    * A system port might be taken by another process at any time.
    * There are no useful expectations in this spec.

  Removed files:
    trunk/spec/rubyspec/library/drb/stop_service_spec.rb
Index: spec/rubyspec/library/drb/stop_service_spec.rb
===================================================================
--- spec/rubyspec/library/drb/stop_service_spec.rb	(revision 58993)
+++ spec/rubyspec/library/drb/stop_service_spec.rb	(nonexistent)
@@ -1,25 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/library/drb/stop_service_spec.rb#L0
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/test_server', __FILE__)
-require 'drb'
-
-describe "DRb.stop_service" do
-  before :all do
-    # for concurrent processes
-    @port = 9001 + (Process.pid & 7 )
-  end
-
-  before :each do
-    # because each spec needs it's own port since DRb is broken that way as exhibited below
-    @url = "druby://localhost:#{@port}"
-    @port += 1
-  end
-
-  it "clears the port so a new server can start" do
-    10.times do
-      server = nil
-      lambda { server = DRb.start_service(@url, TestServer.new) }.should_not raise_error
-      DRb.current_server.should == server
-      lambda { DRb.stop_service }.should_not raise_error
-    end
-  end
-end

Property changes on: spec/rubyspec/library/drb/stop_service_spec.rb
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-LF
\ No newline at end of property

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]