mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
Fix unit test when false is not at /bin/false
This commit is contained in:
@@ -25,7 +25,7 @@ describe "SafeExec", ->
|
||||
done()
|
||||
|
||||
it "should execute a command with non-zero exit status", (done) ->
|
||||
@safe_exec "/bin/false", @options, (err, stdout, stderr) =>
|
||||
@safe_exec "/usr/bin/env false", @options, (err, stdout, stderr) =>
|
||||
stdout.should.equal ""
|
||||
stderr.should.equal ""
|
||||
err.message.should.equal "exit status 1"
|
||||
|
||||
Reference in New Issue
Block a user