Sha256: d18890897c2e2c2f97948828a472b4719f06e09fa6efc7c906e616d4a2ab385f

Contents?: true

Size: 767 Bytes

Versions: 24

Compression:

Stored size: 767 Bytes

Contents

require File.dirname(__FILE__) + "/../../test_helper"

unit_tests do
  test "number_of_workers is determined by mirror server options" do
    workers = DeepTest::Distributed::TestServerWorkers.new(
      DeepTest::Options.new({}),
      {:number_of_workers => 4},
      mock
    )

    assert_equal 4, workers.number_of_workers
  end

  test "server is retrieved using client connection information" do
    workers = DeepTest::Distributed::TestServerWorkers.new(
      options = DeepTest::Options.new({}),
      {:number_of_workers => 4},
      mock(:address => "address")
    )
    DeepTest::Server.expects(:remote_reference).
      with("address", options.server_port).
      returns(:server_reference)

    assert_equal :server_reference, workers.server
  end
end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
jason-o-matic-deep_test-1.2.2.1 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.10 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.11 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.12 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.13 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.14 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.2 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.3 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.4 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.5 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.6 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.7 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.8 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.9 test/deep_test/distributed/test_server_workers_test.rb
jperkins-deep_test-1.2.2 test/deep_test/distributed/test_server_workers_test.rb
jason-o-matic-deep_test-1.2.2.15 test/deep_test/distributed/test_server_workers_test.rb
jstorimer-deep-test-1.4.0 test/deep_test/distributed/test_server_workers_test.rb
jstorimer-deep-test-1.3.0 test/deep_test/distributed/test_server_workers_test.rb
jstorimer-deep-test-1.2.0 test/deep_test/distributed/test_server_workers_test.rb
jstorimer-deep-test-1.1.0 test/deep_test/distributed/test_server_workers_test.rb