Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
... wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
vjanelle committed Dec 12, 2018
1 parent 18accc6 commit 2450a98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/unit/mcollective/util/bolt_support_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ module Util
end

it "should support fail_ok" do
expect { support.run_task(nil, "shell", "command" => "/usr/bin/false") }.to raise_error(
expect { support.run_task(nil, "shell", "command" => "/bin/false") }.to raise_error(
"Command failed with code 1"
)

result = support.run_task(nil, "shell", "command" => "/usr/bin/false", "fail_ok" => true)
result = support.run_task(nil, "shell", "command" => "/bin/false", "fail_ok" => true)

expect(result.error_set.first.to_hash).to eq(
"localhost" => {
Expand All @@ -75,7 +75,7 @@ module Util
"msg" => "Command failed with code 1",
"kind" => "choria.playbook/taskerror",
"details" => {
"command" => "/usr/bin/false"
"command" => "/bin/false"
}
}
}
Expand Down

0 comments on commit 2450a98

Please sign in to comment.