mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -06:00
Add missing file
This commit is contained in:
parent
da76ebe2ae
commit
b4269f1add
19
internal/tracing_test.go
Normal file
19
internal/tracing_test.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestTracing(t *testing.T) {
|
||||
inCtx := context.Background()
|
||||
|
||||
tr, ctx := StartRegion(inCtx, "testing")
|
||||
assert.NotNil(t, ctx)
|
||||
assert.NotEqual(t, inCtx, ctx)
|
||||
assert.NotNil(t, tr)
|
||||
tr.SetTag("key", "value")
|
||||
defer tr.End()
|
||||
}
|
||||
Loading…
Reference in a new issue