mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Update staging/src/k8s.io/kubectl/pkg/cmd/create/create_rolebinding_test.go
Co-authored-by: Jian Zeng <anonymousknight96@gmail.com>
This commit is contained in:
parent
1e0bbe61ae
commit
20da5a9d8e
@ -17,7 +17,7 @@ limitations under the License.
|
|||||||
package create
|
package create
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
rbac "k8s.io/api/rbac/v1"
|
rbac "k8s.io/api/rbac/v1"
|
||||||
@ -73,7 +73,7 @@ func TestCreateRoleBinding(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for i, tc := range tests {
|
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()
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user