mirror of
https://github.com/labstack/echo.git
synced 2025-06-21 00:29:32 +02:00
Fix Context#SetContext()/Context#Context()
This commit is contained in:
@ -328,7 +328,8 @@ func TestContextRedirect(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestContextEmbedded(t *testing.T) {
|
||||
c := new(echoContext)
|
||||
var c Context
|
||||
c = new(echoContext)
|
||||
c.SetContext(context.WithValue(c, "key", "val"))
|
||||
assert.Equal(t, "val", c.Value("key"))
|
||||
now := time.Now()
|
||||
|
Reference in New Issue
Block a user