Skip to content

Commit

Permalink
Increase number of runscope messages checked for e2e tests
Browse files Browse the repository at this point in the history
Since builds run in parallel, the e2e tests sometimes fail
because their runscope messages are pushed down by other builds.

We currently test against 7 ruby versions, and a maximum of 2 builds are
triggered per PR (push + PR build). Checking 20 items should be
sufficient to handle this workload.
  • Loading branch information
rohitpaulk committed Jan 9, 2018
1 parent d8d93d1 commit ba8a086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/helpers/runscope_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def initialize(api_token)

def requests(bucket_key)
with_retries(3) do
response = @conn.get("/buckets/#{bucket_key}/messages", count: 10)
response = @conn.get("/buckets/#{bucket_key}/messages", count: 20)

raise "Runscope error. #{response.body}" unless response.status == 200

Expand Down

0 comments on commit ba8a086

Please # to comment.