From b500814c69fe2f392eac0f48c8981930e1b01ea6 Mon Sep 17 00:00:00 2001 From: Glenn Sarti Date: Tue, 18 Jul 2017 15:28:39 -0700 Subject: [PATCH] (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. --- spec/unit/pool_manager_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/pool_manager_spec.rb b/spec/unit/pool_manager_spec.rb index 11e5529..fcb93fa 100644 --- a/spec/unit/pool_manager_spec.rb +++ b/spec/unit/pool_manager_spec.rb @@ -2316,7 +2316,7 @@ EOT it 'should set checkout_to_migration metric in redis' do 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) - 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