From 2fc24393b508854bf0f44ff45f25b43d2ac7158a Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 30 May 2025 03:06:40 +0700 Subject: all: turn off log timestamp during testing Printing date and time during testing makes the log lines too long. --- deadlinks_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/deadlinks_test.go b/deadlinks_test.go index c0bdd84..2950db4 100644 --- a/deadlinks_test.go +++ b/deadlinks_test.go @@ -24,6 +24,7 @@ const testAddress = `127.0.0.1:11836` const testExternalAddress = `127.0.0.1:11900` func TestMain(m *testing.M) { + log.SetFlags(0) var httpDirWeb = http.Dir(`testdata/web`) var fshandle = http.FileServer(httpDirWeb) -- cgit v1.3