fix(context): make context Value method adhere to Go standards (#3897)
This commit is contained in:
@ -1985,7 +1985,7 @@ func TestContextGolangContext(t *testing.T) {
|
||||
ti, ok := c.Deadline()
|
||||
assert.Equal(t, ti, time.Time{})
|
||||
assert.False(t, ok)
|
||||
assert.Equal(t, c.Value(0), c.Request)
|
||||
assert.Equal(t, c.Value(ContextRequestKey), c.Request)
|
||||
assert.Equal(t, c.Value(ContextKey), c)
|
||||
assert.Nil(t, c.Value("foo"))
|
||||
|
||||
|
Reference in New Issue
Block a user