Infinite loop causes missing test log in stage While statements #qy3

Accidentally my implementation runs into infinite loop on this test case:

// This program uses a while loop to print the
// numbers from 0 to 3
// The statement inside the block is executed
// every time the loop condition is true
var world = 0;
while (world < 3) {
  print world;
  world = world + 1;
}

Test process keeps running for 1-5 minutes.

Finally in the web page, test state becomes “Ready to run tests”:

Looks like we failed to execute tests on time.

Please try again? Let us know at hello@codecrafters.io if this keeps happening.

I can not check which test case times out if I lose my `git push` command output.

Could we have a shorter time limit on this stage and keep the test log, like sqlite3#nz8 ?

Hey @realth000, you can test this locally as a workaround:

  1. Save the lox program as test.lox
  2. Run ./your_program.sh run test.lox

That should help you debug without waiting on the remote runner. Let me know if you need more help!

Got it. Thanks!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.