Skip to content

Commit

Permalink
Increase sleep time before checking deletion
Browse files Browse the repository at this point in the history
When an edge cluster is deleted in acceptance tests, occasionally the test
is failing because the code checks for successful deletion - but
deletion is sometimes too slow.

Change increases the wait time before checking.

Signed-off-by: Kobi Samoray <kobi.samoray@broadcom.com>
  • Loading branch information
ksamoray committed Apr 10, 2024
1 parent d8f4f3c commit 9f1ad03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_edge_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func testAccNSXEdgeClusterCheckDestroy(state *terraform.State, displayName strin
connector := getPolicyConnector(testAccProvider.Meta().(nsxtClients))

// This addresses the fact that object is retrieved even though it had been deleted
time.Sleep(1 * time.Second)
time.Sleep(10 * time.Second)

for _, rs := range state.RootModule().Resources {
if rs.Type != "nsxt_edge_cluster" {
Expand Down

0 comments on commit 9f1ad03

Please sign in to comment.