Skip to content

Commit

Permalink
Ran hack/go-fmtupdate.h on mig_info_provider_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwinhr716 committed Mar 13, 2024
1 parent da30b66 commit 9916027
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cluster-autoscaler/cloudprovider/gce/mig_info_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ func TestGetMigInstanceTemplateName(t *testing.T) {
name: "template name in cache",
cache: &GceCache{
migs: map[GceRef]Mig{mig.GceRef(): mig},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): InstanceTemplateNameType{templateName, false}},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): {templateName, false}},
},
expectedTemplateName: templateName,
},
Expand Down Expand Up @@ -954,7 +954,7 @@ func TestGetMigInstanceTemplate(t *testing.T) {
name: "template in cache",
cache: &GceCache{
migs: map[GceRef]Mig{mig.GceRef(): mig},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): InstanceTemplateNameType{templateName, false}},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): {templateName, false}},
instanceTemplatesCache: map[GceRef]*gce.InstanceTemplate{mig.GceRef(): template},
},
expectedTemplate: template,
Expand All @@ -964,7 +964,7 @@ func TestGetMigInstanceTemplate(t *testing.T) {
name: "cache without template, fetch success",
cache: &GceCache{
migs: map[GceRef]Mig{mig.GceRef(): mig},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): InstanceTemplateNameType{templateName, false}},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): {templateName, false}},
instanceTemplatesCache: make(map[GceRef]*gce.InstanceTemplate),
},
fetchMigTemplate: fetchMigTemplateConst(template),
Expand All @@ -975,7 +975,7 @@ func TestGetMigInstanceTemplate(t *testing.T) {
name: "cache with old template, fetch success",
cache: &GceCache{
migs: map[GceRef]Mig{mig.GceRef(): mig},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): InstanceTemplateNameType{templateName, false}},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): {templateName, false}},
instanceTemplatesCache: map[GceRef]*gce.InstanceTemplate{mig.GceRef(): oldTemplate},
},
fetchMigTemplate: fetchMigTemplateConst(template),
Expand All @@ -986,7 +986,7 @@ func TestGetMigInstanceTemplate(t *testing.T) {
name: "cache without template, fetch failure",
cache: &GceCache{
migs: map[GceRef]Mig{mig.GceRef(): mig},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): InstanceTemplateNameType{templateName, false}},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): {templateName, false}},
instanceTemplatesCache: make(map[GceRef]*gce.InstanceTemplate),
},
fetchMigTemplate: fetchMigTemplateFail,
Expand All @@ -996,7 +996,7 @@ func TestGetMigInstanceTemplate(t *testing.T) {
name: "cache with old template, fetch failure",
cache: &GceCache{
migs: map[GceRef]Mig{mig.GceRef(): mig},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): InstanceTemplateNameType{templateName, false}},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): {templateName, false}},
instanceTemplatesCache: map[GceRef]*gce.InstanceTemplate{mig.GceRef(): oldTemplate},
},
fetchMigTemplate: fetchMigTemplateFail,
Expand Down Expand Up @@ -1251,7 +1251,7 @@ func TestGetMigMachineType(t *testing.T) {
},
}
cache := &GceCache{
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): InstanceTemplateNameType{"template", false}},
instanceTemplateNameCache: map[GceRef]InstanceTemplateNameType{mig.GceRef(): {"template", false}},
instanceTemplatesCache: map[GceRef]*gce.InstanceTemplate{
mig.GceRef(): {
Name: "template",
Expand Down

0 comments on commit 9916027

Please sign in to comment.