1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix exec node test for gh-actions

The node adds `shell` to `execOpts` if `/bin/bash` exists. Clearly it
has not existed in Travis or running locally - but it does exist
on gh-action runner, so the test was failing.
This commit is contained in:
Nick O'Leary 2021-07-02 10:15:44 +01:00
parent c8a0d3c10d
commit b2f5a259ab
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -45,8 +45,12 @@ describe('exec node', function() {
n1.should.have.property("addpay","payload"); n1.should.have.property("addpay","payload");
n1.should.have.property("timer",0); n1.should.have.property("timer",0);
n1.should.have.property("oldrc","false"); n1.should.have.property("oldrc","false");
n1.should.have.property("execOpt", {encoding:'binary', maxBuffer:10000000, windowsHide: false}); n1.should.have.property("execOpt");
n1.should.have.property("spawnOpt", {windowsHide:false}); n1.execOpt.should.have.property("encoding", 'binary');
n1.execOpt.should.have.property("maxBuffer", 10000000);
n1.execOpt.should.have.property("windowsHide", false);
n1.should.have.property("spawnOpt");
n1.spawnOpt.should.have.property("windowsHide", false);
done(); done();
} catch(err) { } catch(err) {
done(err); done(err);