Skip to content

Commit

Permalink
test(profiler): Bump default imageFamily to debian 10 (#6474)
Browse files Browse the repository at this point in the history
Co-authored-by: Maggie Nolan <nolanmar@google.com>
  • Loading branch information
aabmass and nolanmar511 committed Aug 4, 2022
1 parent 3db735c commit 8c4b695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions profiler/proftest/proftest.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ func (pr *ProfileResponse) HasSourceFile(filename string) error {
// StartInstance starts a GCE Instance with configs specified by inst,
// and which runs the startup script specified in inst. If image project
// is not specified, it defaults to "debian-cloud". If image family is
// not specified, it defaults to "debian-9".
// not specified, it defaults to "debian-10".
func (tr *GCETestRunner) StartInstance(ctx context.Context, inst *InstanceConfig) error {
imageProject, imageFamily := inst.ImageProject, inst.ImageFamily
if imageProject == "" {
imageProject = "debian-cloud"
}
if imageFamily == "" {
imageFamily = "debian-9"
imageFamily = "debian-10"
}
img, err := tr.ComputeService.Images.GetFromFamily(imageProject, imageFamily).Context(ctx).Do()
if err != nil {
Expand Down

0 comments on commit 8c4b695

Please sign in to comment.