1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +02:00

remove debug print in request_id_test.go

This commit is contained in:
Yusuke Komatsu 2017-02-10 16:38:45 +09:00 committed by Vishal Rana
parent 92b197d4b7
commit f82701ebe9

View File

@ -5,7 +5,6 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/davecgh/go-spew/spew"
"github.com/labstack/echo" "github.com/labstack/echo"
uuid "github.com/satori/go.uuid" uuid "github.com/satori/go.uuid"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
@ -24,7 +23,6 @@ func TestRequestID(t *testing.T) {
h(c) h(c)
if assert.NotEmpty(t, rec.Header().Get("X-Request-ID")) { if assert.NotEmpty(t, rec.Header().Get("X-Request-ID")) {
u, err := uuid.FromString(rec.Header().Get("X-Request-ID")) u, err := uuid.FromString(rec.Header().Get("X-Request-ID"))
spew.Dump(u)
assert.NoError(t, err) assert.NoError(t, err)
assert.Equal(t, uint(4), u.Version()) assert.Equal(t, uint(4), u.Version())
assert.Equal(t, uint(uuid.VariantRFC4122), u.Variant()) assert.Equal(t, uint(uuid.VariantRFC4122), u.Variant())