From 966c24e5052583fe50386d0c1d5ecbed254d2643 Mon Sep 17 00:00:00 2001 From: Sascha Schwarze Date: Sun, 4 Dec 2022 21:47:15 +0100 Subject: [PATCH] Remove usage of deprecated Ginkgo capabilities --- Makefile | 4 +--- test/e2e/e2e_one_off_builds_test.go | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e8278706da..0512cc5a65 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ TEST_NAMESPACE ?= default TEKTON_VERSION ?= v0.30.0 # E2E test flags -TEST_E2E_FLAGS ?= --fail-fast -p --randomize-all --slow-spec-threshold=5m -timeout=1h -progress -trace -v +TEST_E2E_FLAGS ?= --fail-fast -p --randomize-all -timeout=1h -progress -trace -v # E2E test service account name to be used for the build runs, can be set to generated to use the generated service account feature TEST_E2E_SERVICEACCOUNT_NAME ?= pipeline @@ -189,7 +189,6 @@ test-unit-ginkgo: ginkgo --randomize-suites \ --fail-on-pending \ --keep-going \ - --slow-spec-threshold=4m \ -compilers=2 \ -race \ -trace \ @@ -203,7 +202,6 @@ test-integration: install-apis ginkgo --randomize-all \ --randomize-suites \ --fail-on-pending \ - --slow-spec-threshold=4m \ -trace \ test/integration/... diff --git a/test/e2e/e2e_one_off_builds_test.go b/test/e2e/e2e_one_off_builds_test.go index aa3e33369f..d027b4d497 100644 --- a/test/e2e/e2e_one_off_builds_test.go +++ b/test/e2e/e2e_one_off_builds_test.go @@ -24,7 +24,7 @@ var _ = Describe("Using One-Off Builds", func() { ) AfterEach(func() { - if CurrentGinkgoTestDescription().Failed { + if CurrentSpecReport().Failed() { printTestFailureDebugInfo(testBuild, testBuild.Namespace, testID) } else if buildRun != nil {