From 30ec771cf61d1673d7d048f3ac0ff89f3e10f8a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E7=8E=AE=E6=96=87?= Date: Thu, 29 Aug 2024 02:17:43 +0800 Subject: [PATCH] error strings should not be capitalized resolve warnings from go-staticcheck --- test/e2e/storage/testsuites/volumelimits.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/storage/testsuites/volumelimits.go b/test/e2e/storage/testsuites/volumelimits.go index 86f78f6d32e..fe8414d6ca2 100644 --- a/test/e2e/storage/testsuites/volumelimits.go +++ b/test/e2e/storage/testsuites/volumelimits.go @@ -238,7 +238,7 @@ func (t *volumeLimitsTestSuite) DefineTests(driver storageframework.TestDriver, } } if pod.Status.Phase != v1.PodPending { - return true, fmt.Errorf("Expected pod to be in phase Pending, but got phase: %v", pod.Status.Phase) + return true, fmt.Errorf("expected pod to be in phase Pending, but got phase: %v", pod.Status.Phase) } return false, nil }) @@ -380,12 +380,12 @@ func getInTreeNodeLimits(ctx context.Context, cs clientset.Interface, nodeName, case migrationplugins.AzureDiskInTreePluginName: allocatableKey = volumeutil.AzureVolumeLimitKey default: - return 0, fmt.Errorf("Unknown in-tree volume plugin name: %s", driverName) + return 0, fmt.Errorf("unknown in-tree volume plugin name: %s", driverName) } limit, ok := node.Status.Allocatable[v1.ResourceName(allocatableKey)] if !ok { - return 0, fmt.Errorf("Node %s does not contain status.allocatable[%s] for volume plugin %s", nodeName, allocatableKey, driverName) + return 0, fmt.Errorf("node %s does not contain status.allocatable[%s] for volume plugin %s", nodeName, allocatableKey, driverName) } return int(limit.Value()), nil }