mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00: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:
		| @@ -45,8 +45,12 @@ describe('exec node', function() { | ||||
|                 n1.should.have.property("addpay","payload"); | ||||
|                 n1.should.have.property("timer",0); | ||||
|                 n1.should.have.property("oldrc","false"); | ||||
|                 n1.should.have.property("execOpt", {encoding:'binary', maxBuffer:10000000, windowsHide: false}); | ||||
|                 n1.should.have.property("spawnOpt", {windowsHide:false}); | ||||
|                 n1.should.have.property("execOpt"); | ||||
|                 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(); | ||||
|             } catch(err) { | ||||
|                 done(err); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user