Skip to content

Commit de461ef

Browse files
committed
Update dependency
1 parent b371580 commit de461ef

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

pkg/cache/internal/informers_map_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package internal
1919
import (
2020
"fmt"
2121

22-
. "github.com/onsi/ginkgo"
22+
. "github.com/onsi/ginkgo/v2"
2323
. "github.com/onsi/gomega"
2424
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2525
"k8s.io/apimachinery/pkg/runtime"

pkg/cache/internal/internal_suite_test.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ package internal
1919
import (
2020
"testing"
2121

22-
. "github.com/onsi/ginkgo"
22+
. "github.com/onsi/ginkgo/v2"
23+
"github.com/onsi/ginkgo/v2/reporters"
2324
. "github.com/onsi/gomega"
2425
"sigs.k8s.io/controller-runtime/pkg/envtest/printer"
2526
)
2627

28+
var suiteName = "Cache Internal Suite"
29+
2730
func TestSource(t *testing.T) {
2831
RegisterFailHandler(Fail)
29-
suiteName := "Cache Internal Suite"
30-
RunSpecsWithDefaultAndCustomReporters(t, suiteName, []Reporter{printer.NewlineReporter{}, printer.NewProwReporter(suiteName)})
32+
RunSpecs(t, suiteName)
3133
}
34+
35+
var _ = ReportAfterSuite("Report to Prow", func(report Report) {
36+
reporters.ReportViaDeprecatedReporter(printer.NewlineReporter{}, report) //nolint // For migration of custom reporter check https://onsi.github.io/ginkgo/MIGRATING_TO_V2#migration-strategy-2
37+
reporters.ReportViaDeprecatedReporter(printer.NewProwReporter(suiteName), report) //nolint // For migration of custom reporter check https://onsi.github.io/ginkgo/MIGRATING_TO_V2#migration-strategy-2
38+
})

0 commit comments

Comments
 (0)