From dc0385d0a064d0e2d491f004277f7d2c0a2122b6 Mon Sep 17 00:00:00 2001 From: Tomasz Smelcerz Date: Fri, 5 Apr 2024 08:41:36 +0200 Subject: [PATCH] Review fix --- internal/pkg/flags/flags_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/pkg/flags/flags_test.go b/internal/pkg/flags/flags_test.go index 082d384a69..706d029974 100644 --- a/internal/pkg/flags/flags_test.go +++ b/internal/pkg/flags/flags_test.go @@ -228,6 +228,16 @@ func Test_ConstantFlags(t *testing.T) { constValue: DefaultDropCrdStoredVersionMap, expectedValue: "Manifest:v1beta1,Watcher:v1beta1,ModuleTemplate:v1beta1,Kyma:v1beta1", }, + { + constName: "DefaultLeaderElectionLeaseDuration", + constValue: DefaultLeaderElectionLeaseDuration.String(), + expectedValue: (180 * time.Second).String(), + }, + { + constName: "DefaultLeaderElectionRenewDeadline", + constValue: DefaultLeaderElectionRenewDeadline.String(), + expectedValue: (120 * time.Second).String(), + }, } for _, testcase := range tests { testcase := testcase