pomerium/internal/telemetry/requestid/requestid_test.go
Caleb Doxsey 500405512f
dependencies: vendor base58, remove shortuuid (#2739)
* vendor base58

* remove shortuuid
2021-11-02 09:23:15 -06:00

15 lines
243 B
Go

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)
}