Exercise Tracker App: 5th test times out
See original GitHub issueDescribe your problem and how to reproduce it: I can’t figure out why the 5th test times out with this error:
I can retrieve a full exercise log of any user by getting /api/exercise/log with a parameter of userId(_id). App will return the user object with added array log and count (total exercise count). (Test timed out)
// tests completed
The strange thing is that all other tests are passing including the last one which is using the same endpoint as the 5th one. I also test it manually and it is working fine. I even added a middleware to check all incoming requests and used the same endpoints to clarify that there is no problem with the code.
I am using Glitch for the challenge.
Add a Link to the page with the problem: https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/exercise-tracker
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Exercise Tracker test times out - The freeCodeCamp Forum
App will return the user object with added array log and count (total exercise count).”) times out. I tried different variations, but can't...
Read more >The Best Workout Apps for 2022 - PCMag
Trim down or bulk up, run faster or bike farther—however you work out, these top tested apps help you keep your commitment to...
Read more >Google Fit: Activity Tracker 4+ - App Store
Get to a healthier and more active life with Google Fit! It's hard to know how much or what kind of activity you...
Read more >Best Fitness Apps of 2023 - Verywell Fit
Our Top Picks · MyFitnessPal · Daily Workouts Fitness Trainer · Zones for Training · Alo Moves · Glo · Sworkit · JEFIT...
Read more >Best running apps for 2022 - Tom's Guide
The app records your pace, distance, total exercise time, calories burned and other useful metrics, while delivering a variety of training plans ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pinglinh , Well, the file is a MarkDown file with the tests written in a yaml syntax, but that is parsed before being run. The tests are run using Chai asserts, but most of it is plain JS.
It may help to go through the above mentioned forum post.
@nhcarrigan I am going to close this, as it has not come up again since (that I have experienced or seen). It can simply be reopened if we manage to replicate it.