Commit 0f5b0ea3 authored by anonym's avatar anonym
Browse files

Prefer do..end over {} for multi-line blocks.

parent a44a711a
......@@ -366,9 +366,9 @@ Given /^the time has synced$/ do
try_for(300) { $vm.execute("test -e #{file}").success? }
end
rescue
File.open("#{$config["TMPDIR"]}/log.htpdate", 'w') { |file|
File.open("#{$config["TMPDIR"]}/log.htpdate", 'w') do |file|
file.write($vm.execute('cat /var/log/htpdate.log').stdout)
}
end
raise TimeSyncingError.new("Time syncing failed")
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment