mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 17:52:24 +08:00
Tracing: Use tracing.InitializeTracerForTest (#75479)
This commit is contained in:

committed by
GitHub

parent
af8a46adbb
commit
0128d0403f
@ -21,7 +21,7 @@ import (
|
||||
)
|
||||
|
||||
func setupAuthMiddlewareTest(t *testing.T, identity *authn.Identity, authErr error) *contexthandler.ContextHandler {
|
||||
return contexthandler.ProvideService(setting.NewCfg(), tracing.NewFakeTracer(), featuremgmt.WithFeatures(), &authntest.FakeService{
|
||||
return contexthandler.ProvideService(setting.NewCfg(), tracing.InitializeTracerForTest(), featuremgmt.WithFeatures(), &authntest.FakeService{
|
||||
ExpectedErr: authErr,
|
||||
ExpectedIdentity: identity,
|
||||
})
|
||||
|
Reference in New Issue
Block a user