Skip to content

Commit

Permalink
Add spec revision to test deployments.
Browse files Browse the repository at this point in the history
  • Loading branch information
timburks committed Mar 3, 2023
1 parent f304bdd commit 1c3128d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/benchmark/benchmark_artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func BenchmarkListArtifacts(b *testing.B) {
// Try to speed up creation with a worker pool (this might not help much but seemed worth a try).
taskQueue, wait := tasks.WorkerPool(ctx, 5)
projectName := names.Project{ProjectID: projectID}
total := 100
total := 1000
step := 5
for i := 0; i < total; i += step {
taskQueue <- &seedArtifactsTask{
Expand Down Expand Up @@ -188,6 +188,7 @@ func createApiDeploymentRevisions(b *testing.B, ctx context.Context, client conn
DisplayName: deployment.DeploymentID,
Description: fmt.Sprintf("Description for %s", deployment.DeploymentID),
EndpointUri: fmt.Sprintf("https://r%d.example.com", r),
SpecRevision: fmt.Sprintf(deployment.Project() + "/apis/a/versions/v/specs/s@%d", r)
},
AllowMissing: true,
})
Expand Down

0 comments on commit 1c3128d

Please sign in to comment.