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

Tests times out due to connection to external APIs #150

Open
dras51 opened this issue Apr 20, 2021 · 0 comments
Open

Tests times out due to connection to external APIs #150

dras51 opened this issue Apr 20, 2021 · 0 comments

Comments

@dras51
Copy link

dras51 commented Apr 20, 2021

Payment Handler test fails due to some sort of connection to an external API not returning a response before the test times out
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

this is a sneaky bug and so it doesn't happen all the time, except if the connection to the external API is slow, how ever you can confirm that the test isn't running locally by turning off your internet connection and

  1. Turn off your internet connection
  2. Go to 'Terminal' in the root folder
  3. run 'npm run test'
  4. Scroll down 'on your console'
  5. See error

Expected behavior
Tests should run fine when its not connected to the internet as the data required from external sources should be mocked

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Terminal

Additional context
Add any other context about the problem here.

** Pull Requests **
All Pull Request should be made against development branch read contributors guide for more information about contributing

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

No branches or pull requests

1 participant