-
Notifications
You must be signed in to change notification settings - Fork 6
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
shouldNotAddTrackableWhenRenewedTokenDoesNotHaveCapabilityForTrackableId
(RequestingNewTokenTest
) failing with "Timed out waiting for 30000 ms"
#846
Comments
➤ Automation for Jira commented: The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3184 |
Probably related, I've seen
|
And at API Level 27 (#848):
|
Again, perhaps different but same test, at API Level 27 (#850):
|
|
|
I had a little look at this to see if I could get a local reproduction for the 30000ms error, I did manage to do so, when my emulators' wifi was in a state of "Connected to device, but unable to provide internet". Simply turning off the Wifi didn't do it (the test false-positive'd because the device very quickly failed to connect to Ably), I had to achieve the above state by removing all the DNS server entries from my local machine (mac) and restart android studio. The steps:
|
Another way the test could be improved that I noticed whilst I was investigating the above: if an Exception is thrown for any other reason, the test can return a false-positive result. A possible fix would be to catch the specific type of exception we expect for the purpose of this test, or pick some information out of the exception message to ensure that it's the correct one (in my case, with emulator Wifi just turned off, the test passed quickly because it couldn't connect to Ably). |
As previously noted there is a possible related failure in
A bit more detail from the build report for
|
At API Level 27 (#917, at 31ded36):
With a little bit more information from the build report:
|
The above issue from Quintin is something that I experienced during local testing when trying to use Android API 33 - when I googled it was something along the lines of needing to create a channel for the notification |
I've only seen one failure so far for this test, but am creating an issue so we can track it.
Failing from our Android emulation workflow. This link will only survive as long as GitHub keeps the test run logs, so I'll also quote from the output...
At API Level 27 (#843):
The text was updated successfully, but these errors were encountered: