From 227e1c3d26b86ee9ac1ae08866a8662210df9e48 Mon Sep 17 00:00:00 2001 From: "Badr, Nesma" Date: Mon, 13 Jan 2025 16:48:28 +0100 Subject: [PATCH] Start unit tests --- cmd/main.go | 2 +- internal/maintenancewindows/maintenance_policy_handler_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index a4ad5c427f..fdd507e78d 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -137,7 +137,7 @@ func pprofStartServer(addr string, timeout time.Duration, setupLog logr.Logger) } } -//nolint: funlen // setupManager is a main function that sets up the manager +//nolint:funlen // setupManager is a main function that sets up the manager func setupManager(flagVar *flags.FlagVar, cacheOptions cache.Options, scheme *machineryruntime.Scheme, setupLog logr.Logger, ) { diff --git a/internal/maintenancewindows/maintenance_policy_handler_test.go b/internal/maintenancewindows/maintenance_policy_handler_test.go index 12e76e1f54..c99e31d088 100644 --- a/internal/maintenancewindows/maintenance_policy_handler_test.go +++ b/internal/maintenancewindows/maintenance_policy_handler_test.go @@ -4,8 +4,9 @@ import ( "testing" "github.com/go-logr/logr" - "github.com/kyma-project/lifecycle-manager/internal/maintenancewindows" "github.com/stretchr/testify/require" + + "github.com/kyma-project/lifecycle-manager/internal/maintenancewindows" ) func TestMaintenancePolicyFileExists_FileNotExists(t *testing.T) {