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.8.11 spec/net/balancing/round_robin_spec.rb
right_support-2.8.10 spec/net/balancing/round_robin_spec.rb
right_support-2.8.9 spec/net/balancing/round_robin_spec.rb
right_support-2.8.8 spec/net/balancing/round_robin_spec.rb
right_support-2.8.7 spec/net/balancing/round_robin_spec.rb
right_support-2.8.6 spec/net/balancing/round_robin_spec.rb
right_support-2.8.3 spec/net/balancing/round_robin_spec.rb
right_support-2.8.2 spec/net/balancing/round_robin_spec.rb
right_support-2.8.1 spec/net/balancing/round_robin_spec.rb
right_support-2.8.0 spec/net/balancing/round_robin_spec.rb
right_support-2.7.0 spec/net/balancing/round_robin_spec.rb