1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|compute] wait for ready before testing tags

This commit is contained in:
geemus 2011-09-22 19:37:39 -05:00
parent d1ad49dc55
commit c80baef30e

View file

@ -47,6 +47,8 @@ Shindo.tests("Fog::Compute[:aws] | monitor", ['aws']) do
tests('tags') do tests('tags') do
@instance = Fog::Compute[:aws].servers.create(:tags => {'key' => 'value'}) @instance = Fog::Compute[:aws].servers.create(:tags => {'key' => 'value'})
@instance.wait_for { ready? }
tests('@instance.reload.tags').returns({'key' => 'value'}) do tests('@instance.reload.tags').returns({'key' => 'value'}) do
@instance.reload.tags @instance.reload.tags
end end