Skip to content

Commit 1d2729a

Browse files
committed
Disable EC2 metadata lookup in worker deployment error test
1 parent a6a4f86 commit 1d2729a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/temporalcli/commands.worker.deployment_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,10 @@ func (s *SharedServerSuite) TestCreateWorkerDeploymentVersion_EmptyComputeConfig
11991199
}
12001200

12011201
func (s *SharedServerSuite) TestCreateWorkerDeploymentVersion_Errors() {
1202+
// Keep the fake AWS validation case local; otherwise the SDK tries EC2 IMDS
1203+
// during credential resolution and waits on network retries.
1204+
s.T().Setenv("AWS_EC2_METADATA_DISABLED", "true")
1205+
12021206
deploymentName := uuid.NewString()
12031207
taskQueue := uuid.NewString()
12041208

0 commit comments

Comments
 (0)