mirror of
https://github.com/inspec/inspec
synced 2024-12-21 02:23:13 +00:00
8df0fb0814
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
11 lines
341 B
Ruby
11 lines
341 B
Ruby
control "timeout-test-01" do
|
|
# Do something that will timeout, with inline timeout option
|
|
describe command("sleep 10; echo oops", timeout: 2) do
|
|
its("stdout") { should be_empty }
|
|
end
|
|
|
|
# Validate that the connection still works after a timeout
|
|
describe command("echo hello") do
|
|
its("exit_status") { should cmp 0 }
|
|
end
|
|
end
|