Skip to content

fix an issue with debugging the integration tests #56

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

Merged
merged 4 commits into from
Dec 13, 2018

Conversation

devoncarew
Copy link
Member

  • fix an issue with debugging the integration tests

When running tests from IntelliJ, it sets the DART_VM_OPTIONS env option, which cases the VM to bind to the given port. That lets IntelliJ debug unit tests. Our tests were however spawning child dart processes; these were inheriting the parent's env variables, so the child process was also trying to bind to the same port, and failing.

@kenzieschmoll


// Remove the DART_VM_OPTIONS env variable from the child process, so the
// Dart VM doesn't try and open a service protocol port if
// 'DART_VM_OPTIONS: --enable-vm-service:63990' was pass in.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: pass => passed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

Copy link
Member

@kenzieschmoll kenzieschmoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for fixing! Fixes #55

@devoncarew
Copy link
Member Author

(updated to use a newer version of webdev - will hopefully fix travis)

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.

2 participants