Skip to content

Commit b7ecab4

Browse files
committed
increase retry count for TestAPIGateway_GatewayClassConfig test
1 parent b547902 commit b7ecab4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

acceptance/tests/api-gateway/api_gateway_gatewayclassconfig_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,14 @@ func TestAPIGateway_GatewayClassConfig(t *testing.T) {
133133
k8sClient.DeleteAllOf(context.Background(), &gwv1beta1.Gateway{}, client.InNamespace(namespace))
134134
})
135135

136+
137+
136138
// Ensure it exists.
137139
logger.Log(t, "checking that gateway is synchronized to Consul")
138140
checkConsulExists(t, consulClient, api.APIGateway, gatewayName)
139141

140142
// Scenario: Gateway deployment should match the default instances defined on the gateway class config
141-
logger.Log(t, "checking that gateway instances match defined gateway class config")
143+
// checking that gateway instances match defined gateway class config
142144
checkNumberOfInstances(t, k8sClient, consulClient, gateway.Name, gateway.Namespace, defaultInstances, gateway)
143145

144146
// Scenario: Updating the GatewayClassConfig should not affect gateways that have already been created
@@ -177,7 +179,7 @@ func scale(t *testing.T, client client.Client, name, namespace string, scaleTo *
177179
func checkNumberOfInstances(t *testing.T, k8client client.Client, consulClient *api.Client, name, namespace string, wantNumber *int32, gateway *gwv1beta1.Gateway) {
178180
t.Helper()
179181

180-
retryCheckWithWait(t, 30, 10*time.Second, func(r *retry.R) {
182+
retryCheckWithWait(t, 40, 10*time.Second, func(r *retry.R) {
181183
logger.Log(t, "checking that gateway instances match defined gateway class config")
182184
logger.Log(t, fmt.Sprintf("want: %d", *wantNumber))
183185

0 commit comments

Comments
 (0)