mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(maint) Update flaky test
Sometimes this test would fail if the computer running the tests was under a bit of load. This commit changes the expected output to be up to 1.99 seconds instead of the previous 0.99 seconds.
This commit is contained in:
parent
9c93d2534f
commit
b500814c69
1 changed files with 1 additions and 1 deletions
|
|
@ -2316,7 +2316,7 @@ EOT
|
||||||
it 'should set checkout_to_migration metric in redis' do
|
it 'should set checkout_to_migration metric in redis' do
|
||||||
expect(redis.hget("vmpooler__vm__#{vm}", 'checkout_to_migration')).to be_nil
|
expect(redis.hget("vmpooler__vm__#{vm}", 'checkout_to_migration')).to be_nil
|
||||||
subject.migrate_vm_and_record_timing(vm, pool, source_host_name, dest_host_name, provider)
|
subject.migrate_vm_and_record_timing(vm, pool, source_host_name, dest_host_name, provider)
|
||||||
expect(redis.hget("vmpooler__vm__#{vm}", 'checkout_to_migration')).to match(/0\.[\d]+/)
|
expect(redis.hget("vmpooler__vm__#{vm}", 'checkout_to_migration')).to match(/[01]\.[\d]+/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue