Skip to content

Commit

Permalink
Tweak messages to be sent to avoid sandbox rate limiting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyboy committed Sep 25, 2018
1 parent 5e57937 commit 68e88ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Spec/RealtimeClientChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2066,13 +2066,13 @@ class RealtimeClientChannel: QuickSpec {
defer { client.dispose(); client.close() }
let channel = client.channels.get("test-maxMessageSize")
// This amount of messages would be beyond maxMessageSize, if bundled together
let messagesToBeSent = 5000
let messagesToBeSent = 1000

// call publish before connecting, so messages are queued
waitUntil(timeout: testTimeout*2) { done in
let partialDone = AblyTests.splitDone(messagesToBeSent, done: done)
for i in 1...messagesToBeSent {
channel.publish("initial\(i)", data: "message\(i)") { error in
channel.publish("initial initial\(i)", data: "message message\(i)") { error in
expect(error).to(beNil())
partialDone()
}
Expand Down

0 comments on commit 68e88ac

Please sign in to comment.