spec/acceptance/realtime/channel_history_spec.rb in ably-0.7.1 vs spec/acceptance/realtime/channel_history_spec.rb in ably-0.7.2
- old
+ new
@@ -59,11 +59,11 @@
end
end
context 'with lots of messages published with a single client and channel' do
let(:messages_sent) { 30 }
- let(:rate_per_second) { 4 }
+ let(:rate_per_second) { 10 }
let(:limit) { 15 }
def ensure_message_history_direction_and_paging_is_correct(direction)
channel.history(direction: direction, limit: limit) do |history|
expect(history.length).to eql(limit)
@@ -101,10 +101,10 @@
end
end
end
end
- context 'in multiple ProtocolMessages', em_timeout: (30 / 4) + 20 do
+ context 'in multiple ProtocolMessages', em_timeout: (30 / 10) + 5 do
it 'retrieves limited history forwards with pagination' do
messages_sent.times do |index|
EventMachine.add_timer(index.to_f / rate_per_second) do
channel.publish('event', "history#{index}") do
next unless index == messages_sent - 1