Skip to content

Commit

Permalink
Merge branch 'test-fixups'
Browse files Browse the repository at this point in the history
  • Loading branch information
mthssdrbrg committed Jan 22, 2017
2 parents 8e0f760 + 31126d9 commit 4f64e2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .kitchen.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ driver:
memory: '512m'
cpu: 2
use_sudo: false
privileged: <%= ENV['TRAVIS'] ? false : true %>
add_host: <%= ENV['TRAVIS'] ? [] : [['localhost.localdomain', '127.0.0.1']] %>
provisioner:
name: 'chef_solo'
require_chef_omnibus: false
Expand Down
4 changes: 2 additions & 2 deletions Berksfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ source 'https://api.berkshelf.com'
metadata

group :test do
cookbook 'apt'
cookbook 'java'
cookbook 'java', '~> 1.22.0'
cookbook 'apt', '< 4.0'
end
4 changes: 2 additions & 2 deletions test/integration/helpers/serverspec/support/service_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
def start_kafka(wait = false)
result = run_command(start_command_string)
if wait && result.exit_status.zero?
await(10) do
await do
File.exist?(log_file_path) && File.read(log_file_path).match(start_regexp)
end
end
Expand All @@ -64,7 +64,7 @@ def start_kafka(wait = false)
def stop_kafka(wait = false)
result = run_command(stop_command_string)
if wait && result.exit_status.zero?
await(10) { File.exist?(log_file_path) && File.read(log_file_path).match(stop_regexp) }
await { File.exist?(log_file_path) && File.read(log_file_path).match(stop_regexp) }
end
result
end
Expand Down

0 comments on commit 4f64e2c

Please sign in to comment.