Skip to content

Commit aecf34c

Browse files
committed
fix unit test
Signed-off-by: Anand Kumar Singh <anandrkskd@gmail.com>
1 parent 00b53d8 commit aecf34c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controllers/argocd/argocd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ func TestDexConfiguration(t *testing.T) {
231231
assert.DeepEqual(t, testArgoCD.Spec.RBAC, testRBAC)
232232
}
233233

234+
// kubernetes environment test, no defer required as the Config API is false by default
234235
func TestSSOSkippedOnNonOpenShift(t *testing.T) {
235236
util.SetConfigAPIFound(false)
236-
defer util.SetConfigAPIFound(true)
237237

238238
scheme := runtime.NewScheme()
239239
_ = argoapp.AddToScheme(scheme)

0 commit comments

Comments
 (0)