From 6f06f9737e319f88af873dc6162c6669a3d3b3e9 Mon Sep 17 00:00:00 2001 From: geemus Date: Thu, 22 Sep 2011 19:59:11 -0500 Subject: [PATCH] [aws|elb] wait_for server to be ready? before register --- tests/aws/models/elb/model_tests.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/aws/models/elb/model_tests.rb b/tests/aws/models/elb/model_tests.rb index 260f3d819..26f9cfb70 100644 --- a/tests/aws/models/elb/model_tests.rb +++ b/tests/aws/models/elb/model_tests.rb @@ -110,6 +110,8 @@ Shindo.tests('AWS::ELB | models', ['aws', 'elb']) do end server = Fog::Compute[:aws].servers.create + server.wait_for { ready? } + tests('register instance') do begin elb.register_instances(server.id)