From f3b2d2a99889257022de5923a070e770b8d41b02 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Thu, 29 Apr 2021 00:00:30 +0200 Subject: [PATCH] Fix config tests in main branch (#8767) The merge of 8761 did not catch that the secrets were off by one because it was not rebased on top of 8693. Signed-off-by: Julien Pivotto --- config/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config_test.go b/config/config_test.go index 85e0a78fbd..ddc014bc6f 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -915,7 +915,7 @@ func TestElideSecrets(t *testing.T) { yamlConfig := string(config) matches := secretRe.FindAllStringIndex(yamlConfig, -1) - require.Equal(t, 13, len(matches), "wrong number of secret matches found") + require.Equal(t, 14, len(matches), "wrong number of secret matches found") require.NotContains(t, yamlConfig, "mysecret", "yaml marshal reveals authentication credentials.") }