summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-01-13 09:15:23 +0000
committerThom May <thom@may.lt>2016-01-13 09:15:23 +0000
commit556e5f2d78b5c6de2f34d8dd655ee515ff317296 (patch)
treeebb17cb05d60e02f973262e58583993b6e429b26 /spec/functional
parent67904eae428dcd2158bd3654fad7aec7c6875f20 (diff)
parent30895241dfde87d74e3caaf649a118ea2aa304d1 (diff)
downloadchef-556e5f2d78b5c6de2f34d8dd655ee515ff317296.tar.gz
Merge pull request #4388 from chef/lcg/more-rubocop-lint
more rubocop fixes
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/run_lock_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/run_lock_spec.rb b/spec/functional/run_lock_spec.rb
index 78b3847d19..f3156ff770 100644
--- a/spec/functional/run_lock_spec.rb
+++ b/spec/functional/run_lock_spec.rb
@@ -1,6 +1,6 @@
#
# Author:: Daniel DeLeo (<dan@opscode.com>)
-# Copyright:: Copyright (c) 2012 Opscode, Inc.
+# Copyright:: Copyright (c) 2012-2016 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -321,7 +321,7 @@ describe Chef::RunLock do
attr_reader :pid
def last_event
- while true
+ loop do
line = readline_nonblock(read_from_process)
break if line.nil?
event, time = line.split("@")