Tell us what’s happening:
In .freeCodeCamp/test/utils.js
there is a #getScriptOutput
function which kills the child process in 1 second if it’s not completed.
The environment provided by CodeAlly is not powerful enough to consistency finish running the script that quickly, so this causes tests to fail most of the time, making project completion unachievable.
I’m not doing anything obscene or slow on my environment. In fact, even doing normal SQL queries in the PSQL interactive shell can take anywhere between 1-5 seconds, script aside.
I was only able to pass by modifying the tests to increase the timeout to 10 seconds.
Can the timeout please be increased in general? I’m not sure which repository these are maintained in, so I couldn’t PR it myself. A pointer would be appreciated!
The proposed change:
setTimeout(() => {
child.kill();
- }, 1000);
+ }, 10000);
const { strdout } = await child;
return stdout;
Your code so far
N/A
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Challenge: Build a Salon Appointment Scheduler
Link to the challenge: