diff --git a/log/logger_test.go b/log/logger_test.go index dc31b791..c7be4327 100644 --- a/log/logger_test.go +++ b/log/logger_test.go @@ -28,7 +28,7 @@ func TestLogger(t *testing.T) { }, { test: "when TANZU_CLI_LOG_LEVEL is set to 3", - logLevel: "", + logLevel: "3", containStrings: []string{"log-default", "log-0", "log-1", "log-3"}, doesNotContainStrings: []string{"log-5", "log-8"}, }, @@ -38,6 +38,12 @@ func TestLogger(t *testing.T) { containStrings: []string{"log-default", "log-0", "log-1", "log-3", "log-5"}, doesNotContainStrings: []string{"log-8"}, }, + { + test: "when TANZU_CLI_LOG_LEVEL is set to 8", + logLevel: "8", + containStrings: []string{"log-default", "log-0", "log-1", "log-3", "log-5", "log-8"}, + doesNotContainStrings: []string{}, + }, { test: "when TANZU_CLI_LOG_LEVEL is set to 9", logLevel: "9",