Skip to content

Commit 5f39ad4

Browse files
committed
adding extra time for spawning python first time
1 parent f5bf0ca commit 5f39ad4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test-python-shell.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ describe('PythonShell', function () {
1414

1515
describe('#ctor(script, options)', function () {
1616
it('should spawn a Python process', function (done) {
17+
// spawning python might take a while for the first time
18+
// after this python should be in memory and not need extra time for startup
19+
this.timeout(3000)
20+
1721
let pyshell = new PythonShell('exit-code.py');
1822
pyshell.command.should.eql(['test' + sep + 'python' + sep + 'exit-code.py']);
1923
pyshell.terminated.should.be.false;

0 commit comments

Comments
 (0)