Skip to content

Commit c00958d

Browse files
Use result object for stdout text
1 parent b04e822 commit c00958d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acceptance/tests/ticket_2455_on_solaris_init_provider_should_start_service_in_own_smf_contract.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
step "Start the fixture service on #{agent} "
117117
on(agent, puppet("resource service #{fixture_service} provider=init ensure=stopped"))
118118
on(agent, puppet("resource service #{fixture_service} provider=init ensure=running")) do |result|
119-
assert_match(/ensure changed 'stopped' to 'running'/, stdout, "The fixture service #{fixture_service} is not in a testable state on #{agent}.")
119+
assert_match(/ensure changed 'stopped' to 'running'/, result.stdout, "The fixture service #{fixture_service} is not in a testable state on #{agent}.")
120120
end
121121

122122
step "Verify whether the fixture process is alone in its SMF contract on #{agent}"

0 commit comments

Comments
 (0)