Skip to content

Commit 6bc1655

Browse files
committed
use constant-like identifier for better readability
1 parent fcdd668 commit 6bc1655

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/testing/complex_environment.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ func DefaultScheme() *runtime.Scheme {
3535
return sc
3636
}
3737

38+
var noMatcher types.GomegaMatcher = nil
39+
3840
///////////////////////////
3941
/// COMPLEX ENVIRONMENT ///
4042
///////////////////////////
@@ -86,7 +88,7 @@ func (e *ComplexEnvironment) shouldEventuallyReconcile(reconciler string, req re
8688

8789
// ShouldNotReconcile calls the given reconciler with the given request and expects an error.
8890
func (e *ComplexEnvironment) ShouldNotReconcile(reconciler string, req reconcile.Request, optionalDescription ...interface{}) reconcile.Result {
89-
return e.shouldNotReconcile(reconciler, req, nil, optionalDescription...)
91+
return e.shouldNotReconcile(reconciler, req, noMatcher, optionalDescription...)
9092
}
9193

9294
// ShouldNotReconcileWithError calls the given reconciler with the given request and expects an error that matches the given matcher.
@@ -102,7 +104,7 @@ func (e *ComplexEnvironment) shouldNotReconcile(reconciler string, req reconcile
102104

103105
// ShouldEventuallyNotReconcile calls the given reconciler with the given request and retries until an error occurred or the timeout is reached.
104106
func (e *ComplexEnvironment) ShouldEventuallyNotReconcile(reconciler string, req reconcile.Request, timeout, poll time.Duration, optionalDescription ...interface{}) reconcile.Result {
105-
return e.shouldEventuallyNotReconcile(reconciler, req, nil, timeout, poll, optionalDescription...)
107+
return e.shouldEventuallyNotReconcile(reconciler, req, noMatcher, timeout, poll, optionalDescription...)
106108
}
107109

108110
// ShouldEventuallyNotReconcileWithError calls the given reconciler with the given request and retries until an error that matches the given matcher occurred or the timeout is reached.

0 commit comments

Comments
 (0)