grafana/pkg/tsdb/tempo/tempo_test.go

20 lines
466 B
Go
Raw Normal View History

package tempo
import (
"context"
"testing"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestTempo(t *testing.T) {
t.Run("createRequest - success", func(t *testing.T) {
service := &Service{tlog: log.New("tempo-test")}
req, err := service.createRequest(context.Background(), &datasourceInfo{}, "traceID")
require.NoError(t, err)
assert.Equal(t, 1, len(req.Header))
})
}