aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-05-30 03:06:40 +0700
committerShulhan <ms@kilabit.info>2025-05-30 03:06:57 +0700
commit2fc24393b508854bf0f44ff45f25b43d2ac7158a (patch)
tree62ad866428b8baad1d8e1acbaa508176747a04ee
parent470cd42e6516897feaf2f9734e2c4a9d99c97f86 (diff)
downloadjarink-2fc24393b508854bf0f44ff45f25b43d2ac7158a.tar.xz
all: turn off log timestamp during testing
Printing date and time during testing makes the log lines too long.
-rw-r--r--deadlinks_test.go1
1 files changed, 1 insertions, 0 deletions
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)