Skip to content

Commit 9f708a7

Browse files
committed
fix test
1 parent 8092b10 commit 9f708a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ integration-test: $(SELECTED_PACKAGE) build-mock-management-plane-grpc
158158
TEST_ENV="Container" CONTAINER_OS_TYPE=$(CONTAINER_OS_TYPE) BUILD_TARGET="install-agent-local" CONTAINER_NGINX_IMAGE_REGISTRY=${CONTAINER_NGINX_IMAGE_REGISTRY} \
159159
PACKAGES_REPO=$(OSS_PACKAGES_REPO) PACKAGE_NAME=$(PACKAGE_NAME) BASE_IMAGE=$(BASE_IMAGE) DOCKERFILE_PATH=$(DOCKERFILE_PATH) IMAGE_PATH=$(IMAGE_PATH) TAG=${IMAGE_TAG} \
160160
OS_VERSION=$(OS_VERSION) OS_RELEASE=$(OS_RELEASE) \
161-
go test -v ./test/integration
161+
go test -timeout 15m -v ./test/integration
162162

163163
official-image-integration-test: $(SELECTED_PACKAGE) build-mock-management-plane-grpc
164164
TEST_ENV="Container" CONTAINER_OS_TYPE=$(CONTAINER_OS_TYPE) CONTAINER_NGINX_IMAGE_REGISTRY=${CONTAINER_NGINX_IMAGE_REGISTRY} BUILD_TARGET="install" \

test/integration/grpc_management_plane_api_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const (
3636
"configuration file /etc/nginx/nginx.conf test failed\n"
3737

3838
retryCount = 5
39-
retryWaitTime = 2 * time.Second
40-
retryMaxWaitTime = 3 * time.Second
39+
retryWaitTime = 4 * time.Second
40+
retryMaxWaitTime = 5 * time.Second
4141
)
4242

4343
var (
@@ -477,7 +477,7 @@ func getManagementPlaneResponses(t *testing.T, numberOfExpectedResponses int) []
477477
t.Helper()
478478

479479
client := resty.New()
480-
client.SetRetryCount(retryCount).SetRetryWaitTime(4 * time.Second).SetRetryMaxWaitTime(5 * time.Second)
480+
client.SetRetryCount(retryCount).SetRetryWaitTime(retryWaitTime).SetRetryMaxWaitTime(retryMaxWaitTime)
481481
client.AddRetryCondition(
482482
func(r *resty.Response, err error) bool {
483483
responseData := r.Body()

0 commit comments

Comments
 (0)