Browse Source

Merge "compute: Wait until server is ACTIVE before deleting during resource_setup"

changes/41/751641/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
0ac27dc298
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tempest/api/compute/servers/test_servers_negative.py

+ 2
- 1
tempest/api/compute/servers/test_servers_negative.py View File

@@ -60,7 +60,8 @@ class ServersNegativeTestJSON(base.BaseV2ComputeTest):
server = cls.create_test_server(wait_until='ACTIVE')
cls.server_id = server['id']

server = cls.create_test_server()
# Wait until the instance is active to avoid the delete racing
server = cls.create_test_server(wait_until='ACTIVE')
cls.client.delete_server(server['id'])
waiters.wait_for_server_termination(cls.client, server['id'])
cls.deleted_server_id = server['id']


Loading…
Cancel
Save