From 0990fb7b465295f1da5adf701a9bdd2b865478e1 Mon Sep 17 00:00:00 2001 From: luoyuanhao Date: Wed, 23 Oct 2019 22:18:07 +0800 Subject: [PATCH] fix: remove invalid import Change-Id: Ibca15e8d322e6dc19c754f0cd80ce677ec40bca0 --- countlog/countlog_test.go | 4 ---- countlog/stats/stats_test.go | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/countlog/countlog_test.go b/countlog/countlog_test.go index 8b2456f..43c056d 100644 --- a/countlog/countlog_test.go +++ b/countlog/countlog_test.go @@ -11,13 +11,9 @@ import ( "os" "github.com/v2pro/plz/countlog/output/lumberjack" "github.com/v2pro/plz/countlog/spi" - "github.com/v2pro/plz/countlog/output/json" ) func Test_trace(t *testing.T) { - EventWriter = output.NewEventWriter(output.EventWriterConfig{ - Format: &json.Format{}, - }) Trace("hello", "a", "b", "int", 100) } diff --git a/countlog/stats/stats_test.go b/countlog/stats/stats_test.go index ed1762c..0fcedbf 100644 --- a/countlog/stats/stats_test.go +++ b/countlog/stats/stats_test.go @@ -2,7 +2,6 @@ package stats import ( "testing" - "github.com/v2pro/plz/countlog/core" "github.com/stretchr/testify/require" "time" ) @@ -130,4 +129,4 @@ func Benchmark_counter_of_0_elem_dimension(b *testing.B) { //for i := 0; i < b.N; i++ { // counter.Handle(event) //} -} \ No newline at end of file +}