summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-07-05 11:37:12 +0000
committerGitHub <noreply@github.com>2022-07-05 11:37:12 +0000
commitd1e1400747fd3266bfc14d62b4174cd601107003 (patch)
treea5b94d68064f5a2c827c1a5e642870bc9f53112c /test/e2e
parent914835d3e4cbac6db4407acecb7cd2cf3079b2e8 (diff)
parent49cb288df3224da71556e27d2e73e06d446c61f2 (diff)
downloadpodman-d1e1400747fd3266bfc14d62b4174cd601107003.tar.gz
podman-d1e1400747fd3266bfc14d62b4174cd601107003.tar.bz2
podman-d1e1400747fd3266bfc14d62b4174cd601107003.zip
Merge pull request #14829 from saschagrunert/errors-hack-test-utils
hack/test/utils: switch to golang native error wrapping
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/common_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go
index 68b35acf5..2fc967718 100644
--- a/test/e2e/common_test.go
+++ b/test/e2e/common_test.go
@@ -2,6 +2,7 @@ package integration
import (
"bytes"
+ "errors"
"fmt"
"io/ioutil"
"math/rand"
@@ -30,7 +31,6 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gexec"
- "github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
@@ -618,14 +618,14 @@ func (p *PodmanTestIntegration) RunHealthCheck(cid string) error {
restart := p.Podman([]string{"restart", cid})
restart.WaitWithDefaultTimeout()
if restart.ExitCode() != 0 {
- return errors.Errorf("unable to restart %s", cid)
+ return fmt.Errorf("unable to restart %s", cid)
}
}
}
fmt.Printf("Waiting for %s to pass healthcheck\n", cid)
time.Sleep(1 * time.Second)
}
- return errors.Errorf("unable to detect %s as running", cid)
+ return fmt.Errorf("unable to detect %s as running", cid)
}
func (p *PodmanTestIntegration) CreateSeccompJSON(in []byte) (string, error) {