From ccac124b7aa4c7a5076bb30a4a5f0bd3aefe5693 Mon Sep 17 00:00:00 2001 From: aram price Date: Thu, 10 Dec 2020 11:29:13 -0800 Subject: [PATCH] Fix broken test Signed-off-by: Andrew Keesler --- .../supervisorconfig/secretgenerator/secretgenerator_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/controller/supervisorconfig/secretgenerator/secretgenerator_test.go b/internal/controller/supervisorconfig/secretgenerator/secretgenerator_test.go index f1e5a3de..884e2049 100644 --- a/internal/controller/supervisorconfig/secretgenerator/secretgenerator_test.go +++ b/internal/controller/supervisorconfig/secretgenerator/secretgenerator_test.go @@ -226,6 +226,9 @@ func TestController(t *testing.T) { }, { name: "when generating the secret fails, we return an error", + storedSecret: func(secret **corev1.Secret) { + *secret = nil + }, generateKey: func() ([]byte, error) { return nil, errors.New("some generate error") },