blob: dd465c73dafd0d16921145deda136953126cc9ba [file] [log] [blame]
let startTime = Date.now();
let waitTime = 1000;
setTimeout(() => {
if (startTime + waitTime > Date.now())
throw new Error();
}, waitTime);