Update staging/src/k8s.io/kubectl/pkg/cmd/create/create_rolebinding_test.go

Co-authored-by: Jian Zeng <anonymousknight96@gmail.com>

Kubernetes-commit: 20da5a9d8e7d5a1290c028b9489a7ab31a0c45bb
This commit is contained in:
Obeyda Djeffal 2020-11-04 11:50:03 +01:00 committed by Kubernetes Publisher
parent 4507bdb448
commit 6ff4f17e24
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ limitations under the License.
package create
import (
"fmt"
"strconv"
"testing"
rbac "k8s.io/api/rbac/v1"
@ -73,7 +73,7 @@ func TestCreateRoleBinding(t *testing.T) {
}
for i, tc := range tests {
t.Run(fmt.Sprintf("%d", i), func(t *testing.T) {
t.Run(strconv.Itoa(i), func(t *testing.T) {
roleBinding, err := tc.options.createRoleBinding()
if err != nil {
t.Errorf("unexpected error:\n%#v\n", err)