mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
e2e/storage: avoid fmt.Sprintf for single string
The fmt.Sprintf call is either redundant (if the format string contains no format characters) or broken (if it does, because there are no parameters).
This commit is contained in:
parent
bcef72bf06
commit
89193ac0fd
@ -125,7 +125,7 @@ var _ = utils.SIGDescribe("CSI Volumes", func() {
|
||||
|
||||
for _, initDriver := range csiTestDrivers {
|
||||
curDriver := initDriver()
|
||||
Context(fmt.Sprintf(drivers.GetDriverNameWithFeatureTags(curDriver)), func() {
|
||||
Context(drivers.GetDriverNameWithFeatureTags(curDriver), func() {
|
||||
driver := curDriver
|
||||
|
||||
BeforeEach(func() {
|
||||
|
@ -17,8 +17,6 @@ limitations under the License.
|
||||
package storage
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
"k8s.io/api/core/v1"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
@ -77,7 +75,7 @@ var _ = utils.SIGDescribe("In-tree Volumes", func() {
|
||||
|
||||
for _, initDriver := range testDrivers {
|
||||
curDriver := initDriver()
|
||||
Context(fmt.Sprintf(drivers.GetDriverNameWithFeatureTags(curDriver)), func() {
|
||||
Context(drivers.GetDriverNameWithFeatureTags(curDriver), func() {
|
||||
driver := curDriver
|
||||
|
||||
BeforeEach(func() {
|
||||
|
Loading…
Reference in New Issue
Block a user