Merge pull request #127422 from srivastav-abhishek/go-vet-fix

Go vet fixes for gotip
This commit is contained in:
Kubernetes Prow Robot
2024-09-20 14:37:58 +01:00
committed by GitHub
111 changed files with 345 additions and 318 deletions

View File

@@ -3651,7 +3651,7 @@ func setupTestSchedulerWithVolumeBinding(ctx context.Context, t *testing.T, volu
// end with a period.
func makePredicateError(failReason string) error {
s := fmt.Sprintf("0/1 nodes are available: %v.", failReason)
return fmt.Errorf(s)
return errors.New(s)
}
func mustNewPodInfo(t *testing.T, pod *v1.Pod) *framework.PodInfo {