From c80baef30ee581c4c4b20aa35cde492f8b9dec18 Mon Sep 17 00:00:00 2001 From: geemus Date: Thu, 22 Sep 2011 19:37:39 -0500 Subject: [PATCH] [aws|compute] wait for ready before testing tags --- tests/aws/models/compute/server_tests.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/aws/models/compute/server_tests.rb b/tests/aws/models/compute/server_tests.rb index 31a67781c..505a07194 100644 --- a/tests/aws/models/compute/server_tests.rb +++ b/tests/aws/models/compute/server_tests.rb @@ -47,6 +47,8 @@ Shindo.tests("Fog::Compute[:aws] | monitor", ['aws']) do tests('tags') do @instance = Fog::Compute[:aws].servers.create(:tags => {'key' => 'value'}) + @instance.wait_for { ready? } + tests('@instance.reload.tags').returns({'key' => 'value'}) do @instance.reload.tags end