From 6c6729642376c04f175dffba7c1cbd9f63918071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Cort=C3=A9s?= Date: Tue, 10 Oct 2017 12:34:03 +0200 Subject: [PATCH] config: fix error message for unexpected result of yaml marshal --- config/config_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config_test.go b/config/config_test.go index ff644d76b..5f1a8d74e 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -539,7 +539,8 @@ func TestElideSecrets(t *testing.T) { yamlConfig := string(config) matches := secretRe.FindAllStringIndex(yamlConfig, -1) - testutil.Assert(t, len(matches) == 6 && !strings.Contains(yamlConfig, "mysecret"), + testutil.Assert(t, len(matches) == 6, "wrong number of secret matches found") + testutil.Assert(t, !strings.Contains(yamlConfig, "mysecret"), "yaml marshal reveals authentication credentials.") }