We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36c87e1 commit 08eafddCopy full SHA for 08eafdd
internal/testing/gosttest/gomega_suite.go
@@ -11,15 +11,11 @@ import (
11
// automatically initializes gomega with
12
type GomegaSuite struct {
13
suite.Suite
14
- gomega gomega.Gomega
15
}
16
17
// Expect is wraps [gomega/Gomega.Expect], passing the correct [testing/T]. This
18
// supports gomega matchers for verification; which can in some cases provide
19
// more expressive tests.
20
func (s *GomegaSuite) Expect(actual interface{}, extra ...interface{}) types.Assertion {
21
- if s.gomega == nil {
22
- s.gomega = gomega.NewWithT(s.T())
23
- }
24
- return s.gomega.Expect(actual, extra...)
+ return gomega.NewWithT(s.T()).Expect(actual, extra...)
25
0 commit comments