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:
Patrick Ohly 2018-11-09 11:20:19 +01:00
parent bcef72bf06
commit 89193ac0fd
2 changed files with 2 additions and 4 deletions

View File

@ -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() {

View File

@ -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() {