Skip to content

Commit ccf682a

Browse files
committed
add timeout
Change-Id: I5b033f14bbfeb626a6c1f847636362fc3a0aa8dd
1 parent 1e9f71c commit ccf682a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

execution/test/integration/consumer/Serverless/AppEngine/Flexible/appengine_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,8 @@ func TestCreateAppEngine(t *testing.T) {
755755
}
756756

757757
actualServiceInfo := gjson.Parse(gcloudOutput)
758-
status := actualServiceInfo.Get("servingStatus").String()
758+
t.Logf("Actual Service Info : %s",actualServiceInfo)
759+
status := gjson.Get(actualServiceInfo.String(),"servingStatus").String()
759760
t.Logf("Status for %s/%s: %s", serviceName, versionID, status)
760761
if status == "SERVING" {
761762
t.Logf("Service %s/%s is SERVING. Performing assertions...", serviceName, versionID)

execution/test/integration/consumer/Serverless/AppEngine/Standard/appengine_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const (
5151
saCreationPropagationWait = 15 * time.Second // Wait after SA creation before binding roles
5252
appCreatePropagationWait = 15 * time.Second // Wait after App Engine app creation
5353
apiEnablementPropagationWait = 30 * time.Second // Wait after enabling APIs
54+
vpcAccessCreateWaitTime = 60 * time.Second
5455

5556
// Constants for gcloud-created VPC Access Connector (used with --subnet)
5657
connectorMachineType = "e2-micro" // Machine type for the connector
@@ -273,6 +274,7 @@ func TestAppEngineStandardIntegration(t *testing.T) {
273274
gcloudCreatedConnectorFullName := createVPCConnectorGcloud(t, projectID, testConnectorName, defaultRegion,
274275
testSubnetworkName, projectID, // Pass subnetName and its projectID
275276
connectorMachineType, connectorMinInstances, connectorMaxInstances)
277+
time.Sleep(vpcAccessCreateWaitTime)
276278
defer deleteVPCConnectorGcloud(t, projectID, testConnectorName, defaultRegion)
277279

278280
appYamlDisplayUrl := fmt.Sprintf("https://storage.googleapis.com/%s/%s", sampleAppGcsBucket, appYamlGcsPath)

0 commit comments

Comments
 (0)