mock tests: remove redundant wrapping of error

The "error waiting for expected CSI calls" is redundant because it's
immediately followed by checking that error with:

   framework.ExpectNoError(err, "while waiting for all CSI calls")
This commit is contained in:
Patrick Ohly
2020-04-02 15:31:16 +02:00
parent 2550051f3b
commit 48f8e398fb

View File

@@ -726,7 +726,7 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
err = wait.Poll(time.Second, csiUnstageWaitTimeout, func() (done bool, err error) {
_, index, err := compareCSICalls(trackedCalls, test.expectedCalls, m.cs, f.Namespace.Name, driverPodName, driverContainerName)
if err != nil {
return true, fmt.Errorf("error waiting for expected CSI calls: %s", err)
return true, err
}
if index == 0 {
// No CSI call received yet