Remove racy portion of rspec test
We can't assume bandersnatch hasn't run yet after puppet is done since it runs on a cron it could start running even while puppet is still running. Instead just assert that it does its job after it should have run. This fixes a test failure due to the racyness that existed previously. Change-Id: I3f919c9dbd762c1dc603e24899a7ced16d1165a0
This commit is contained in:
parent
1df4ea0e16
commit
28d1f2fc3c
@ -34,12 +34,6 @@ describe 'puppet-bandersnatch module' do
|
||||
end
|
||||
|
||||
describe 'required services' do
|
||||
# Before bandersnatch has run
|
||||
describe command('curl localhost') do
|
||||
its(:stdout) { should contain('Index of /') }
|
||||
its(:stdout) { should_not contain('simple/') }
|
||||
end
|
||||
|
||||
# Wait for bandersnatch to run
|
||||
describe command('sleep 480 && curl localhost') do
|
||||
its(:stdout) { should contain('Index of /') }
|
||||
|
Loading…
Reference in New Issue
Block a user