-
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
Networking connectivity integration test using local proxy #866
Networking connectivity integration test using local proxy #866
Conversation
@cruickshankpg - this will now run a simple integration test, which publishes a bunch of location updates for a single Trackable, using an injected |
android-test-common/src/main/java/com/ably/tracking/test/android/common/AblyProxy.kt
Outdated
Show resolved
Hide resolved
…coroutine after expectations delivered
This branch now has failing tests, which I believe reproduce some of our open issues:
I've not yet implemented a Layer 7 proxy, which is needed for the rest of the high priority fault types, so I'll try to get that done next. Tomorrow is really busy for me, but I'll see what I can do. It might be a good idea to try to get this reviewed and ready to merge before then, if anyone wants to use the tests we have so far as a reproduction of the issues above to validate fixes? (Assuming that turns them green...) Word of warning -- these are slow tests when they're failing. Generally, the pass in 2-3 seconds each, but waiting for |
At 1e96b3a, locally from Android Studio, I am seeing: With the following failures:
@jaley Is this what you would expect at this stage with this pull request? If so, then I would like to annotate those tests as ignored for now to make this pull request green and mergeable to |
Nice work, @QuintinWillison! Yes, I can confirm that I get the exact same failures, even on the #886 branch, as I don't think any of the relevant fixes have landed in main yet. In case you want to add comments/etc as to why these tests are ignored:
(Of course, there's no guarantee that there won't be more issues masked by those...) |
…em alive by continuing to compile them. Co-authored-by: Kacper Kluka <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few kotlinish suggestions, but we can address them later
publishing-sdk/src/androidTest/java/com/ably/tracking/publisher/NetworkConnectivityTests.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I skimmed over proxy implementation and test helper classes details, however, since the tests run and work I think it's safe to say that it looks good 👍 Also left a few suggestions/questions but they shouldn't block this PR 😉
@cruickshankpg here's an empty test and a place to put the proxy implementation. Let's discuss the interface we're working to initial so we can both get started.