Skip to content

Commit 45b510e

Browse files
authored
acc: Clean up redundant log message (#2819)
Currently all tests log a message about running with empty env, this PR removes that: ``` === NAME TestAccept/workspace/jobs/create acceptance_test.go:236: Running test with env [] === CONT TestAccept/bundle/telemetry/deploy-mode acceptance_test.go:236: Running test with env [] === CONT TestAccept/bundle/help/bundle-schema acceptance_test.go:236: Running test with env [] ```
1 parent 08120b4 commit 45b510e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

acceptance/acceptance_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ func testAccept(t *testing.T, inprocessMode bool, singleTest string) int {
238238

239239
if len(expanded) == 1 {
240240
// env vars aren't part of the test case name, so log them for debugging
241-
t.Logf("Running test with env %v", expanded[0])
241+
if len(expanded[0]) > 0 {
242+
t.Logf("Running test with env %v", expanded[0])
243+
}
242244
runTest(t, dir, coverDir, repls.Clone(), config, configPath, expanded[0])
243245
} else {
244246
for _, envset := range expanded {

0 commit comments

Comments
 (0)