Skip to content

Commit

Permalink
Fix unit test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshaySainiDell committed Dec 17, 2024
1 parent d895a6b commit 707cf3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions controllers/csm_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,9 @@ func (suite *CSMControllerTestSuite) TestRemoveModule() {
}
*tt.errorInjector = true
}
if tt.csm.HasModule(csmv1.ReverseProxy) {
modules.IsReverseProxySidecar = func() bool { return false }
}
err := r.removeModule(ctx, tt.csm, operatorConfig, r.Client)
if tt.expectedErr == "" {
assert.Nil(t, err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/modules/reverseproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,6 @@ func AddReverseProxyServiceName(dp *v1.DeploymentApplyConfiguration) {
}
}

func IsReverseProxySidecar() bool {
var IsReverseProxySidecar = func() bool {
return deployAsSidecar
}

0 comments on commit 707cf3e

Please sign in to comment.