Skip to content
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

Wait for server request to complete so UI test breakpoints work as expected #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RobinDaugherty
Copy link

The problem I experienced is:

  1. Set a breakpoint in your UI test right after a call to e.g. MusselUniversalLinkTester.open(link)
  2. UI test runs until breakpoint is reached
  3. Mussel Server never receives the request

This is caused by the fact that URLRequest does work in another queue once the task is resumed, and by setting a breakpoint directly after resuming the task, the other queue never performs the work. The fix is to have Mussel wait until the URLRequest task completes before returning. I did this using a DispatchGroup.

I also added some debugPrint calls so that when the request is complete, there's some evidence of it in the debug logs.

to allow breakpoints to be set in the UI test directly after a Mussel request is issued.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants