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

Update device/project api tests to minimise app reinitialisation #2015

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

knolleary
Copy link
Member

@knolleary knolleary commented Apr 17, 2023

Part of #2004

Updates the following two files to minimise how many times they reinitialise the forge app.

  • test/unit/forge/routes/api/device_spec.js
  • test/unit/forge/routes/api/project_spec.js

Running locally this has reduced the run time for these two suites from 1m to 20s.

It also fixes a bug discovered as part of the refactoring around retrieving a device's access token.

Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

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

👍

@Steve-Mcl Steve-Mcl merged commit 0d7005e into main Apr 17, 2023
@Steve-Mcl Steve-Mcl deleted the 2004-rework-containers-tests branch April 17, 2023 16:43
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