Skip to content

Commit 49240d7

Browse files
committed
fix TestAccComputeRegionBackendService_regionBackendServiceHaPolicyManualLeader_update
1 parent 73be826 commit 49240d7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mmv1/third_party/terraform/services/compute/resource_compute_region_backend_service_ha_policy_manual_leader_update_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ resource "google_compute_network_endpoint" "endpoint2" {
7373
7474
instance = google_compute_instance.endpoint-instance2.name
7575
ip_address = google_compute_instance.endpoint-instance2.network_interface[0].network_ip
76+
depends_on = [google_compute_network_endpoint.endpoint1]
7677
}
7778
7879
data "google_compute_image" "my_image" {
@@ -145,11 +146,7 @@ resource "google_compute_region_backend_service" "default" {
145146
connection_draining_timeout_sec = 0
146147
// Explicitly depend on the endpoints to prevent test flakes due to creating
147148
// the BackendService before the endpoints have been added to the NEG.
148-
depends_on = [
149-
google_compute_network_endpoint_group.neg,
150-
google_compute_network_endpoint.endpoint1,
151-
google_compute_network_endpoint.endpoint2
152-
]
149+
depends_on = [google_compute_network_endpoint.endpoint2]
153150
}
154151
`, context)
155152
}

0 commit comments

Comments
 (0)