diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-12-05 22:50:40 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-12-05 22:50:40 -0800 |
commit | 8b689761823d8f59fe992c9ba9fd771eebdaa3f2 (patch) | |
tree | 05f48fdbbbc270e21c1520f1264bb755c8422785 | |
parent | 808bd4f34f8cef30cfa09a67071a53e630d71fc8 (diff) | |
download | chef-8b689761823d8f59fe992c9ba9fd771eebdaa3f2.tar.gz |
right, the class methods don't mix in
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/functional/resource/apt_package_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/functional/resource/apt_package_spec.rb b/spec/functional/resource/apt_package_spec.rb index 184b438522..dd9afaff13 100644 --- a/spec/functional/resource/apt_package_spec.rb +++ b/spec/functional/resource/apt_package_spec.rb @@ -67,7 +67,7 @@ module AptServer end def start_apt_server - if self.class.alreadyfailed + if AptServer.alreadyfailed raise "aborting the rest of the apt-package func tests due to failure in the before block" end @apt_server_thread = Thread.new do @@ -88,8 +88,8 @@ module AptServer # swallow the errors the second time (which unfortunately creates cascading errors which # have nothing to do with the problem), but the first time we throw the exception so # that debugging can hopefully proceeed. - if !self.class.alreadyfailed - self.class.alreadyfailed = true + if !AptServer.alreadyfailed + AptServer.alreadyfailed = true raise end end |