From 4a8bccddd47946a964d7eb358e8af06b369a3e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Valais?= Date: Fri, 22 Nov 2024 18:28:09 +0100 Subject: [PATCH] rm-disable-compression: fix test --- pkg/agent/config_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/agent/config_test.go b/pkg/agent/config_test.go index 4025259a..3e0dffe1 100644 --- a/pkg/agent/config_test.go +++ b/pkg/agent/config_test.go @@ -174,10 +174,11 @@ func Test_ValidateAndCombineConfig(t *testing.T) { `)), withCmdLineFlags("--disable-compression", "--credentials-file", path, "--install-namespace", "venafi")) require.NoError(t, err) + + // The log line printed by pflag is not captured by the log recorder. assert.Equal(t, testutil.Undent(` INFO Using the Jetstack Secure OAuth auth mode since --credentials-file was specified without --venafi-cloud. INFO Using period from config period="1h0m0s" - INFO The flag --disable-compression has been deprecated an no longer has any effect. `), b.String()) })