Skip to content

Commit 73526f3

Browse files
committed
Remove redundant test for vcert log prefix
The exact logs output is now verified. Signed-off-by: Richard Wall <[email protected]>
1 parent 6f8c52e commit 73526f3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/logs/logs_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ func TestLogs(t *testing.T) {
3737
logs.AddFlags(fs)
3838
fs.Parse(strings.Split(flags, " "))
3939
logs.Initialize()
40-
41-
// Remember to not use `assert.Equal` from within the sub-process
42-
// since (for some reason) `assert.Equal` doesn't cause the test
43-
// sub-process to exit with 1. Instead, it exits with 0, which means
44-
// we can't notice the error from the parent process.
45-
require.Equal(t, "", log.Prefix(), "logs.Initialize should remove the `vCert: ` prefix from the global log logger")
4640
}
4741

4842
log.Print("log Print")

0 commit comments

Comments
 (0)