mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-10-09 15:45:55 +02:00
Read the e2e Go version from go.mod and apply the safe go fix modernizers (#4677)
This commit is contained in:
@@ -470,8 +470,8 @@ func TestPredicateProjectionsCoverEveryStatusField(t *testing.T) {
|
||||
fieldNames := func(v any) []string {
|
||||
typ := reflect.TypeOf(v)
|
||||
names := make([]string, 0, typ.NumField())
|
||||
for i := 0; i < typ.NumField(); i++ {
|
||||
names = append(names, typ.Field(i).Name)
|
||||
for field := range typ.Fields() {
|
||||
names = append(names, field.Name)
|
||||
}
|
||||
sort.Strings(names)
|
||||
return names
|
||||
|
||||
Reference in New Issue
Block a user