Skip to content

Commit

Permalink
Fix dot import
Browse files Browse the repository at this point in the history
  • Loading branch information
maruina committed Dec 17, 2023
1 parent aa4e72b commit cb5d4d5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
16 changes: 8 additions & 8 deletions pkg/kmsca/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package kmsca
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/ginkgo"
"github.com/onsi/gomega"
"sigs.k8s.io/controller-runtime/pkg/envtest/printer"
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
Expand All @@ -30,17 +30,17 @@ import (
// http://onsi.github.io/ginkgo/ to learn more about Ginkgo.

func TestAPIs(t *testing.T) {
RegisterFailHandler(Fail)
gomega.RegisterFailHandler(ginkgo.Fail)

RunSpecsWithDefaultAndCustomReporters(t,
ginkgo.RunSpecsWithDefaultAndCustomReporters(t,
"Controller Suite",
[]Reporter{printer.NewlineReporter{}})
[]ginkgo.Reporter{printer.NewlineReporter{}})
}

var _ = BeforeSuite(func(done Done) {
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter)))
var _ = ginkgo.BeforeSuite(func(done ginkgo.Done) {
logf.SetLogger(zap.New(zap.WriteTo(ginkgo.GinkgoWriter)))
close(done)
}, 60)

var _ = AfterSuite(func() {
var _ = ginkgo.AfterSuite(func() {
})
16 changes: 8 additions & 8 deletions pkg/kmsmock/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package kmsmock
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/ginkgo"
"github.com/onsi/gomega"
"sigs.k8s.io/controller-runtime/pkg/envtest/printer"
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
Expand All @@ -30,17 +30,17 @@ import (
// http://onsi.github.io/ginkgo/ to learn more about Ginkgo.

func TestAPIs(t *testing.T) {
RegisterFailHandler(Fail)
gomega.RegisterFailHandler(ginkgo.Fail)

RunSpecsWithDefaultAndCustomReporters(t,
ginkgo.RunSpecsWithDefaultAndCustomReporters(t,
"Controller Suite",
[]Reporter{printer.NewlineReporter{}})
[]ginkgo.Reporter{printer.NewlineReporter{}})
}

var _ = BeforeSuite(func(done Done) {
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter)))
var _ = ginkgo.BeforeSuite(func(done ginkgo.Done) {
logf.SetLogger(zap.New(zap.WriteTo(ginkgo.GinkgoWriter)))
close(done)
}, 60)

var _ = AfterSuite(func() {
var _ = ginkgo.AfterSuite(func() {
})
16 changes: 8 additions & 8 deletions pkg/signer/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package signer
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/ginkgo"
"github.com/onsi/gomega"
"sigs.k8s.io/controller-runtime/pkg/envtest/printer"
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
Expand All @@ -30,17 +30,17 @@ import (
// http://onsi.github.io/ginkgo/ to learn more about Ginkgo.

func TestAPIs(t *testing.T) {
RegisterFailHandler(Fail)
gomega.RegisterFailHandler(ginkgo.Fail)

RunSpecsWithDefaultAndCustomReporters(t,
ginkgo.RunSpecsWithDefaultAndCustomReporters(t,
"Controller Suite",
[]Reporter{printer.NewlineReporter{}})
[]ginkgo.Reporter{printer.NewlineReporter{}})
}

var _ = BeforeSuite(func(done Done) {
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter)))
var _ = ginkgo.BeforeSuite(func(done ginkgo.Done) {
logf.SetLogger(zap.New(zap.WriteTo(ginkgo.GinkgoWriter)))
close(done)
}, 60)

var _ = AfterSuite(func() {
var _ = ginkgo.AfterSuite(func() {
})

0 comments on commit cb5d4d5

Please sign in to comment.