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.35 spec/net/balancing/round_robin_spec.rb
right_support-2.8.34 spec/net/balancing/round_robin_spec.rb
right_support-2.8.33 spec/net/balancing/round_robin_spec.rb
right_support-2.8.32 spec/net/balancing/round_robin_spec.rb
right_support-2.8.31 spec/net/balancing/round_robin_spec.rb
right_support-2.8.30 spec/net/balancing/round_robin_spec.rb
right_support-2.8.29 spec/net/balancing/round_robin_spec.rb
right_support-2.8.28 spec/net/balancing/round_robin_spec.rb
right_support-2.8.27 spec/net/balancing/round_robin_spec.rb
right_support-2.8.26 spec/net/balancing/round_robin_spec.rb
right_support-2.8.25 spec/net/balancing/round_robin_spec.rb
right_support-2.8.24 spec/net/balancing/round_robin_spec.rb
right_support-2.8.23 spec/net/balancing/round_robin_spec.rb
right_support-2.8.22 spec/net/balancing/round_robin_spec.rb
right_support-2.8.21 spec/net/balancing/round_robin_spec.rb
right_support-2.8.20 spec/net/balancing/round_robin_spec.rb
right_support-2.8.17 spec/net/balancing/round_robin_spec.rb
right_support-2.8.16 spec/net/balancing/round_robin_spec.rb
right_support-2.8.15 spec/net/balancing/round_robin_spec.rb
right_support-2.8.12 spec/net/balancing/round_robin_spec.rb