Merge pull request #96214 from obeyda/feature/fix-go-1-15-tests
testing: fix failing test on go 1.15.3
This commit is contained in:
		| @@ -17,6 +17,7 @@ limitations under the License. | |||||||
| package create | package create | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
|  | 	"strconv" | ||||||
| 	"testing" | 	"testing" | ||||||
|  |  | ||||||
| 	rbac "k8s.io/api/rbac/v1" | 	rbac "k8s.io/api/rbac/v1" | ||||||
| @@ -72,7 +73,7 @@ func TestCreateRoleBinding(t *testing.T) { | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	for i, tc := range tests { | 	for i, tc := range tests { | ||||||
| 		t.Run(string(i), func(t *testing.T) { | 		t.Run(strconv.Itoa(i), func(t *testing.T) { | ||||||
| 			roleBinding, err := tc.options.createRoleBinding() | 			roleBinding, err := tc.options.createRoleBinding() | ||||||
| 			if err != nil { | 			if err != nil { | ||||||
| 				t.Errorf("unexpected error:\n%#v\n", err) | 				t.Errorf("unexpected error:\n%#v\n", err) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot