Skip to content

Commit c0e4cb3

Browse files
Lower timeout for dangling cluster creation to 10s (#10502) (#17936)
[upstream:d21a270947923ed7a62637007aa8e0a616203b78] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 2a41081 commit c0e4cb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/services/container/resource_container_cluster_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3250,7 +3250,7 @@ func TestAccContainerCluster_errorCleanDanglingCluster(t *testing.T) {
32503250

32513251
initConfig := testAccContainerCluster_withInitialCIDR(containerNetName, clusterName)
32523252
overlapConfig := testAccContainerCluster_withCIDROverlap(initConfig, clusterNameError)
3253-
overlapConfigWithTimeout := testAccContainerCluster_withCIDROverlapWithTimeout(initConfig, clusterNameErrorWithTimeout, "40s")
3253+
overlapConfigWithTimeout := testAccContainerCluster_withCIDROverlapWithTimeout(initConfig, clusterNameErrorWithTimeout, "1s")
32543254

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

0 commit comments

Comments
 (0)