Skip to content

Commit

Permalink
Lower timeout for dangling cluster creation to 10s (#10502) (#17936)
Browse files Browse the repository at this point in the history
[upstream:d21a270947923ed7a62637007aa8e0a616203b78]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Apr 23, 2024
1 parent 2a41081 commit c0e4cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/services/container/resource_container_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3250,7 +3250,7 @@ func TestAccContainerCluster_errorCleanDanglingCluster(t *testing.T) {

initConfig := testAccContainerCluster_withInitialCIDR(containerNetName, clusterName)
overlapConfig := testAccContainerCluster_withCIDROverlap(initConfig, clusterNameError)
overlapConfigWithTimeout := testAccContainerCluster_withCIDROverlapWithTimeout(initConfig, clusterNameErrorWithTimeout, "40s")
overlapConfigWithTimeout := testAccContainerCluster_withCIDROverlapWithTimeout(initConfig, clusterNameErrorWithTimeout, "1s")

checkTaintApplied := func(st *terraform.State) error {
// Return an error if there is no tainted (i.e. marked for deletion) cluster.
Expand Down Expand Up @@ -3296,7 +3296,7 @@ func TestAccContainerCluster_errorCleanDanglingCluster(t *testing.T) {
Check: checkTaintApplied,
},
{
// Next attempt to create the overlapping cluster with a 40s timeout. This will fail with a different error.
// Next attempt to create the overlapping cluster with a 1s timeout. This will fail with a different error.
Config: overlapConfigWithTimeout,
ExpectError: regexp.MustCompile("timeout while waiting for state to become 'DONE'"),
},
Expand Down

0 comments on commit c0e4cb3

Please sign in to comment.