diff options
| author | Tim Smith <tsmith84@gmail.com> | 2021-01-05 13:18:11 -0800 |
|---|---|---|
| committer | Tim Smith <tsmith84@gmail.com> | 2021-01-05 13:18:11 -0800 |
| commit | 0498879f605609c36efa0832c4fd2ddb4599ad32 (patch) | |
| tree | ecda838cd80eeb6ee2ecfea3fbfd4cfcbbf121c6 | |
| parent | b1352ca501783a07af182b3a75d4955cb892a917 (diff) | |
| download | chef-extend_timeout.tar.gz | |
Extend the pure ruby Ohai timeout to 4 secondsextend_timeout
This times out from time to time when the system is configured
correctly. It just makes the test cycles take an hour longer.
Signed-off-by: Tim Smith <tsmith@chef.io>
| -rw-r--r-- | spec/integration/ohai/ohai_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/ohai/ohai_spec.rb b/spec/integration/ohai/ohai_spec.rb index af4dd5fe38..9e2ef4b96a 100644 --- a/spec/integration/ohai/ohai_spec.rb +++ b/spec/integration/ohai/ohai_spec.rb @@ -51,11 +51,11 @@ describe "ohai" do # test succeeds and the other one fails, then it can be some kind of shelling-out # issue or poor performance due to I/O on starting up ruby to run ohai, etc. # - it "the hostname plugin must return in under 2 seconds when called from pure ruby" do + it "the hostname plugin must return in under 4 seconds when called from pure ruby" do delta = Benchmark.realtime do Ohai::System.new.all_plugins(["hostname"]) end - expect(delta).to be < 2 + expect(delta).to be < 4 end end end |
