-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legacy tests: Sandbox ClientOptions #405
Conversation
LGTM, good one! |
daf1f58
to
ecd3231
Compare
Tests are still failing, so I decided to test the Travis network. I created this repo and added it to Travis. The internet connection is not slow (65.2 MB/s ⚡️). The build#2 proves that something weird is happening on the backend when a client is requesting a new snadbox app where sometimes it takes more than 10 seconds to retrieve an answer. I also tried to add more time for the
The build#2193 last 48 min 16 sec and the test suite didn't finished ( I'm going back to the specs list. @paddybyers Does this make any sense? Can you take a look at the backend please? /cc @mattheworiordan @tcard |
@ricardopereira but we should only ever be using one app, so why is 16s even an issue? Are we not sharing apps across the test suite? |
@mattheworiordan Every test is requesting a new app. Wrong approach then? |
Definitely, we should fix that. In pretty much all other suites, we create one app and share that app for all tests as creating an app is expensive and by ensuring tests run on their own unique channels, there is no risk of overlap. I believe the only exception to this is in some cases for stats tests as other activity can effect stats. So please go ahead and make that change, it will drastically improve performance. |
Yes it will, indeed! |
@ricardopereira I'll be focusing on iOS in the following days, so I'll tackle this first. |
@tcard Thanks 👍 |
Please remove ecd3231. I was just testing on Travis. |
- XCTestExpectation was created before the sandbox app request and the timeout was easily exceeded
ecd3231
to
001b52f
Compare
* Test suite: newSandboxApp * Use of `newSandboxApp` - XCTestExpectation was created before the sandbox app request and the timeout was easily exceeded * Fix compiler warning.
XCTestExpectation
was created before thehttps://sandbox-rest.ably.io:443/apps
request and the timeout was easily exceeded.