Skip to content

Commit 91504e8

Browse files
psavides-awsDa Wang
authored andcommitted
Use :wait_between_runs as common config between windows/linux default conf
1 parent f332d30 commit 91504e8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/instance_agent/config_test.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,10 @@ class InstanceAgentConfigTest < InstanceAgentTestCase
135135

136136
should 'load the default config file' do
137137
InstanceAgent::Config.config[:config_file] = default_config_path
138-
139-
expected_log_dir = if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
140-
"Amazon/CodeDeploy/log"
141-
else
142-
"/var/log/aws/codedeploy-agent/"
143-
end
144138

145-
assert_equal("/tmp", InstanceAgent::Config.config[:log_dir])
139+
assert_equal(30, InstanceAgent::Config.config[:wait_between_runs])
146140
InstanceAgent::Config.load_config
147-
assert_equal(expected_log_dir, InstanceAgent::Config.config[:log_dir])
141+
assert_equal(1, InstanceAgent::Config.config[:wait_between_runs])
148142
end
149143

150144
should 'include a newline at the end of the file' do

0 commit comments

Comments
 (0)