symphony-org / frost

Frost
BSD 3-Clause "New" or "Revised" License
19 stars 5 forks source link

Fix flaky test in GithubSpec #39

Open lukasz-golebiewski opened 4 years ago

lukasz-golebiewski commented 4 years ago

https://travis-ci.com/frost-org/frost/builds/135247730#L3145

Failures:
  test/Effects/GithubSpec.hs:18:7: 
  1) Effects.Github, Github effect, should fetch a list of issues from a passed repo
       expected: Right ["Test issue three"]
        but got: Left (FrostError "HTTPError (HttpExceptionRequest Request {\n  host                 = \"api.github.com\"\n  port                 = 443\n  secure               = True\n  requestHeaders       = [(\"User-Agent\",\"github.hs/0.21\"),(\"Accept\",\"application/vnd.github.v3+json\")]\n  path                 = \"/repos/dzajkowski/frost-issues-test/issues\"\n  queryString          = \"?state=open&sort=created&direction=desc&milestone=%2A\"\n  method               = \"GET\"\n  proxy                = Nothing\n  rawBody              = False\n  redirectCount        = 10\n  responseTimeout      = ResponseTimeoutDefault\n  requestVersion       = HTTP/1.1\n}\n (StatusCodeException (Response {responseStatus = Status {statusCode = 403, statusMessage = \"Forbidden\"}, responseVersion = HTTP/1.1, responseHeaders = [(\"Server\",\"GitHub.com\"),(\"Date\",\"Wed, 06 Nov 2019 13:22:53 GMT\"),(\"Content-Type\",\"application/json; charset=utf-8\"),(\"Transfer-Encoding\",\"chunked\"),(\"Status\",\"403 Forbidden\"),(\"X-RateLimit-Limit\",\"60\"),(\"X-RateLimit-Remaining\",\"0\"),(\"X-RateLimit-Reset\",\"1573047097\"),(\"X-GitHub-Media-Type\",\"github.v3; format=json\"),(\"Access-Control-Expose-Headers\",\"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type\"),(\"Access-Control-Allow-Origin\",\"*\"),(\"Strict-Transport-Security\",\"max-age=31536000; includeSubdomains; preload\"),(\"X-Frame-Options\",\"deny\"),(\"X-Content-Type-Options\",\"nosniff\"),(\"X-XSS-Protection\",\"1; mode=block\"),(\"Referrer-Policy\",\"origin-when-cross-origin, strict-origin-when-cross-origin\"),(\"Content-Security-Policy\",\"default-src 'none'\"),(\"Content-Encoding\",\"gzip\"),(\"X-GitHub-Request-Id\",\"EBEA:4C6F:2285C2E:501F0D5:5DC2C92C\")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}) \"{\\\"message\\\":\\\"API rate limit exceeded for 35.202.145.110. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)\\\",\\\"documentation_url\\\":\\\"https://developer.github.com/v3/#rate-limiting\\\"}\"))")
  To rerun use: --match "/Effects.Github/Github effect/should fetch a list of issues from a passed repo/"
Randomized with seed 146835348