From e1b1127ce46cdcec872da940ea6548259f539092 Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Wed, 3 Jul 2024 15:15:50 +0200 Subject: [PATCH] Disable parent keepalived check and oom score adjustment in test mode --- main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 58ded3f..28fd3b6 100644 --- a/main.go +++ b/main.go @@ -85,9 +85,11 @@ func main() { setupLogger() - WaitForKeepalivedTermination(ctx, stop) - if err = configOutOfMemoryKiller(); err != nil { - log.Fatal(err) + if !testMode { + WaitForKeepalivedTermination(ctx, stop) + if err = configOutOfMemoryKiller(); err != nil { + log.Fatal(err) + } } configFile := flag.Arg(0)