Skip to content

Commit

Permalink
Fix: fix 029_provider flaky test by adding sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Jun 25, 2024
1 parent b11c7f8 commit 987446d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/integration/029_provider/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ resource "env0_provider" "test_provider" {
description = var.second_run ? "des1" : "des2"
}

# TODO: uncomment when we fix 404 retry logic
# data "env0_provider" "test_provider_data" {
# type = env0_provider.test_provider.type
# }
resource "time_sleep" "wait_5_seconds" {
create_duration = "5s"

depends_on = [env0_provider.test_provider]
}

data "env0_provider" "test_provider_data" {
type = env0_provider.test_provider.type

depends_on = [time_sleep.wait_5_seconds]
}

resource "env0_provider" "test_provider-type-change" {
type = var.second_run ? "aws2-${random_string.random.result}" : "aws1-${random_string.random.result}"
Expand Down

0 comments on commit 987446d

Please sign in to comment.