moto/tests/terraformtests/etc/0007-Comprehend-Reduce-wait-times.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
2.1 KiB
Diff
Raw Normal View History

2023-08-21 20:33:16 +00:00
From 44aeb35bb1747acd7fcae1b53186a37eee61c93d Mon Sep 17 00:00:00 2001
From: Bert Blommers <info@bertblommers.nl>
2023-08-21 20:33:16 +00:00
Date: Sun, 13 Aug 2023 20:53:38 +0000
2022-10-23 11:23:23 +00:00
Subject: [PATCH] Patch: Comprehend timings
---
2022-10-23 11:23:23 +00:00
internal/service/comprehend/common_model.go | 2 +-
2023-08-21 20:33:16 +00:00
internal/service/comprehend/consts.go | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/internal/service/comprehend/common_model.go b/internal/service/comprehend/common_model.go
2023-08-21 20:33:16 +00:00
index b9af8e5f4c..bda7b84d90 100644
--- a/internal/service/comprehend/common_model.go
+++ b/internal/service/comprehend/common_model.go
2022-10-23 11:23:23 +00:00
@@ -60,7 +60,7 @@ func waitNetworkInterfaceCreated(ctx context.Context, conn *ec2.EC2, initialENII
Pending: []string{},
Target: []string{ec2.NetworkInterfaceStatusInUse},
Refresh: statusNetworkInterfaces(ctx, conn, initialENIIds, securityGroups, subnets),
- Delay: 4 * time.Minute,
2022-10-23 11:23:23 +00:00
+ Delay: 4 * time.Second,
MinTimeout: 10 * time.Second,
Timeout: timeout,
}
diff --git a/internal/service/comprehend/consts.go b/internal/service/comprehend/consts.go
2023-08-21 20:33:16 +00:00
index e57884a12d..8fc23d7018 100644
--- a/internal/service/comprehend/consts.go
+++ b/internal/service/comprehend/consts.go
2023-08-21 20:33:16 +00:00
@@ -4,15 +4,15 @@ import (
"time"
)
-const iamPropagationTimeout = 2 * time.Minute
+const iamPropagationTimeout = 2 * time.Second
2022-10-23 11:23:23 +00:00
// Avoid service throttling
2022-10-23 11:23:23 +00:00
-const entityRegcognizerCreatedDelay = 10 * time.Minute
+const entityRegcognizerCreatedDelay = 10 * time.Second
const entityRegcognizerStoppedDelay = 0
-const entityRegcognizerDeletedDelay = 5 * time.Minute
-const entityRegcognizerPollInterval = 1 * time.Minute
2022-10-23 11:23:23 +00:00
+const entityRegcognizerDeletedDelay = 5 * time.Second
+const entityRegcognizerPollInterval = 1 * time.Second
-const documentClassifierCreatedDelay = 15 * time.Minute
+const documentClassifierCreatedDelay = 15 * time.Second
const documentClassifierStoppedDelay = 0
-const documentClassifierDeletedDelay = 5 * time.Minute
-const documentClassifierPollInterval = 1 * time.Minute
+const documentClassifierDeletedDelay = 5 * time.Second
+const documentClassifierPollInterval = 1 * time.Second
2023-08-21 20:33:16 +00:00
--
2.25.1