mirror of https://github.com/gin-gonic/gin.git
Updates Context tests
This commit is contained in:
parent
32d76614aa
commit
c0e8cedc98
|
@ -47,8 +47,8 @@ func TestContextSetGet(t *testing.T) {
|
||||||
// Set
|
// Set
|
||||||
c.Set("foo", "bar")
|
c.Set("foo", "bar")
|
||||||
|
|
||||||
v, err := c.Get("foo")
|
v, ok := c.Get("foo")
|
||||||
if err != nil {
|
if !ok {
|
||||||
t.Errorf("Error on exist key")
|
t.Errorf("Error on exist key")
|
||||||
}
|
}
|
||||||
if v != "bar" {
|
if v != "bar" {
|
||||||
|
|
Loading…
Reference in New Issue