Sha256: 21be0a46fa90152fcd593115623756a0ecd3a23302e389e536ce9fe9fca1d47c

Contents?: true

Size: 310 Bytes

Versions: 51

Compression:

Stored size: 310 Bytes

Contents

require 'spec_helper'

describe RightSupport::Net::LB::RoundRobin do
  before(:each) do
    @endpoints = [1,2,3,4,5]
    @policy = RightSupport::Net::LB::RoundRobin.new()
    @policy.set_endpoints(@endpoints)
  end

  it 'chooses fairly' do
    test_random_distribution do
      @policy.next
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
right_support-2.11.3 spec/net/lb/round_robin_spec.rb
right_support-2.11.2 spec/net/lb/round_robin_spec.rb
right_support-2.10.1 spec/net/balancing/round_robin_spec.rb
right_support-2.9.6 spec/net/balancing/round_robin_spec.rb
right_support-2.9.5 spec/net/balancing/round_robin_spec.rb
right_support-2.9.4 spec/net/balancing/round_robin_spec.rb
right_support-2.9.3 spec/net/balancing/round_robin_spec.rb
right_support-2.9.2 spec/net/balancing/round_robin_spec.rb
right_support-2.9.1 spec/net/balancing/round_robin_spec.rb
right_support-2.8.46 spec/net/balancing/round_robin_spec.rb
right_support-2.8.45 spec/net/balancing/round_robin_spec.rb
right_support-2.8.44 spec/net/balancing/round_robin_spec.rb
right_support-2.8.43 spec/net/balancing/round_robin_spec.rb
right_support-2.8.42 spec/net/balancing/round_robin_spec.rb
right_support-2.8.41 spec/net/balancing/round_robin_spec.rb
right_support-2.8.40 spec/net/balancing/round_robin_spec.rb
right_support-2.8.39 spec/net/balancing/round_robin_spec.rb
right_support-2.8.38 spec/net/balancing/round_robin_spec.rb
right_support-2.8.37 spec/net/balancing/round_robin_spec.rb
right_support-2.8.36 spec/net/balancing/round_robin_spec.rb