Skip to content

Commit e444b8e

Browse files
Merge pull request #1304 from hongkailiu/fix-dot-import
NO-JIRA: Fix linter issues on dot-imports
2 parents 8802931 + 02ca77a commit e444b8e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/cvo/cvo.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
package cvo
22

33
import (
4-
. "github.com/onsi/ginkgo/v2" //nolint:staticcheck
5-
. "github.com/onsi/gomega" //nolint:staticcheck
4+
g "github.com/onsi/ginkgo/v2"
5+
o "github.com/onsi/gomega"
66

77
"github.com/openshift/cluster-version-operator/test/oc"
88
ocapi "github.com/openshift/cluster-version-operator/test/oc/api"
99
)
1010

11-
var logger = GinkgoLogr.WithName("cluster-version-operator-tests")
11+
var logger = g.GinkgoLogr.WithName("cluster-version-operator-tests")
1212

13-
var _ = Describe(`[Jira:"Cluster Version Operator"] cluster-version-operator-tests`, func() {
14-
It("should support passing tests", func() {
15-
Expect(true).To(BeTrue())
13+
var _ = g.Describe(`[Jira:"Cluster Version Operator"] cluster-version-operator-tests`, func() {
14+
g.It("should support passing tests", func() {
15+
o.Expect(true).To(o.BeTrue())
1616
})
1717

18-
It("can use oc to get the version information", func() {
18+
g.It("can use oc to get the version information", func() {
1919
ocClient, err := oc.NewOC(logger)
20-
Expect(err).NotTo(HaveOccurred())
21-
Expect(ocClient).NotTo(BeNil())
20+
o.Expect(err).NotTo(o.HaveOccurred())
21+
o.Expect(ocClient).NotTo(o.BeNil())
2222

2323
output, err := ocClient.Version(ocapi.VersionOptions{Client: true})
24-
Expect(err).NotTo(HaveOccurred())
25-
Expect(output).To(ContainSubstring("Client Version:"))
24+
o.Expect(err).NotTo(o.HaveOccurred())
25+
o.Expect(output).To(o.ContainSubstring("Client Version:"))
2626
})
2727
})

0 commit comments

Comments
 (0)