mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
core/telemetry: move requestid to pkg directory (#4911)
This commit is contained in:
parent
803baeb9e1
commit
4301da3648
18 changed files with 13 additions and 13 deletions
15
pkg/telemetry/requestid/requestid_test.go
Normal file
15
pkg/telemetry/requestid/requestid_test.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package requestid
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestFromContext(t *testing.T) {
|
||||
id := New()
|
||||
ctx := WithValue(context.Background(), id)
|
||||
ctxID := FromContext(ctx)
|
||||
assert.Equal(t, ctxID, id)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue