Tests script running Error: sandbox: execution interrupted, bridge disconnecting

Hello @singhsivcan! Thanks for the response. If I remove the following few lines, I the script runs just fine. To be clear, the request still executes but the response throws the error.

console.log(ā€œSleep for 3 minutes to let video transcodeā€);
var t = new Date().getTime();
while (new Date().getTime() < t + 180000);
console.log(ā€œDone sleepingā€);

This was working 2 days ago. Is there a different way that I can sleep after this request?