Skip to content

Commit

Permalink
test: Minor debug QoL improvement for E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybell committed Oct 9, 2024
1 parent aa48048 commit b66c61f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ func waitForSpannerProcessingUnits(t *testing.T, instanceAdmin *instance.Instanc
Name: instanceId,
}
spannerInstance, err := instanceAdmin.GetInstance(ctx, spannerInstanceReq)
assert.Nil(t, err)
if err != nil {
return "", err
}
assert.NotNil(t, spannerInstance)
processingUnits := spannerInstance.GetProcessingUnits()
if processingUnits != targetProcessingUnits {
Expand Down Expand Up @@ -191,6 +193,7 @@ func TestPerProjectEndToEndDeployment(t *testing.T) {

// Wait up to a minute for Spanner to report initial processing units
spannerInstanceId := fmt.Sprintf("projects/%s/instances/%s", config.ProjectId, spannerName)
logger.Log(t, fmt.Sprintf("Using instance ID: %s", spannerInstanceId))
waitForSpannerProcessingUnits(t, instanceAdmin, spannerInstanceId, spannerTestProcessingUnits, 6, time.Second*10)

// Update the autoscaler config with a new minimum number of processing units
Expand Down

0 comments on commit b66c61f

Please sign in to comment.