aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/log/log_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/log/log_test.go b/pkg/log/log_test.go
index cb40aceab..3cbbfc655 100644
--- a/pkg/log/log_test.go
+++ b/pkg/log/log_test.go
@@ -7,6 +7,10 @@ import (
"testing"
)
+func init() {
+ EnableLogCaching(4, 20)
+}
+
func TestCaching(t *testing.T) {
tests := []struct{ str, want string }{
{"", ""},
@@ -20,7 +24,6 @@ func TestCaching(t *testing.T) {
{"hhhhhhhh", "ggggggg\nhhhhhhhh\n"},
{"jjjjjjjjjjjjjjjjjjjjjjjjj", "jjjjjjjjjjjjjjjjjjjjjjjjj\n"},
}
- EnableLogCaching(4, 20)
prependTime = false
for _, test := range tests {
Logf(1, test.str)