Usage:
-
Make sure you are using Python 3.7+ for the Asyncio Module
-
node index
-
Swap out
// var testy = execFile("python3", ["slow.py"]);
var testy = execFileSync("python3", ["slow.py"]);
and check the test.log output to make sure you get your desired result.
-
I usually delete the log file inbetween tests to make sure I start fresh and zesty.
You can use asyncio or change the sleep method to time.sleep to simulate an API call taking a while to complete. The default wait time is 5 seconds.