summaryrefslogtreecommitdiff
path: root/spec/functional/run_lock_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-01-12 13:38:34 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-12 13:38:34 -0800
commit30895241dfde87d74e3caaf649a118ea2aa304d1 (patch)
tree077958295f1b8c8ca5c7fea1f227204eedef7559 /spec/functional/run_lock_spec.rb
parent812101f11a6c33e49f401ad72598ca6ffb38adc4 (diff)
downloadchef-30895241dfde87d74e3caaf649a118ea2aa304d1.tar.gz
more rubocop fixeslcg/more-rubocop-lint
fixes: Lint/UnreachableCode Lint/NonLocalExitFromIterator Lint/LiteralInCondition Lint/EmptyEnsure Lint/DefEndAlignment Lint/CircularArgumentReference
Diffstat (limited to 'spec/functional/run_lock_spec.rb')
-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("@")