Skip to content
Snippets Groups Projects
Unverified Commit e921e189 authored by JacksonXie's avatar JacksonXie Committed by GitHub
Browse files

remove import github.com/matrixorigin/matrixone/pkg/config in trace (#4599)

avoid import cycle: trace -> pkg/config -> pkg/txn/client -> pkg/common/morpc -> trace

Approved by: @zhangxu19830126, @fengttt
parent 57705fee
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,6 @@ package trace
import (
"context"
"fmt"
"github.com/matrixorigin/matrixone/pkg/config"
"github.com/matrixorigin/matrixone/pkg/util/export"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
......@@ -54,10 +53,8 @@ func Test_initExport(t *testing.T) {
empty: false,
},
}
sysVar := &config.FrontendParameters{}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
sysVar.DisableTrace = !tt.args.enableTracer
export.ResetGlobalBatchProcessor()
initExport(context.TODO(), tt.args.config)
if tt.empty {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment