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

1840 fix weather tests #1927

Merged
merged 4 commits into from
Feb 12, 2020
Merged

Conversation

fewieden
Copy link
Contributor

@fewieden fewieden commented Feb 10, 2020

#1840

Fix timing issue in weather tests => returning response by url instead of index

By debugging the tests locally I noticed, that the tests were failing randomly. By taking a closer look I spotted that the failing tests rendered the weather data as JSON in the spectron window. Increasing the timeouts helped me to detect in the network console that the weather data was retunred for the request to the nunjuck template. It seemed that in some random cases there was a timing issue, which requested first the template and then the weather.

The following change is resolving the timing issue, as it is returning the data based on the url, rather than relying on a specific order of requests.

@MagicMirrorBot
Copy link

Warnings
⚠️

Please include an updated CHANGELOG.md file.
This way we can keep track of all the contributions.

Generated by 🚫 dangerJS

@fewieden fewieden changed the title WIP: 1840 fix weather tests 1840 fix weather tests Feb 10, 2020
@fewieden
Copy link
Contributor Author

Also I enabled the tests for always the latest stable and long term support version of nodejs

Copy link
Contributor

@roramirez roramirez left a comment

Choose a reason for hiding this comment

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

LGFM

@MichMich MichMich merged commit f67310c into MagicMirrorOrg:develop Feb 12, 2020
@fewieden fewieden deleted the fix/weather-tests branch January 1, 2021 13:48
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.

4 participants