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
|
||||
c.Set("foo", "bar")
|
||||
|
||||
v, err := c.Get("foo")
|
||||
if err != nil {
|
||||
v, ok := c.Get("foo")
|
||||
if !ok {
|
||||
t.Errorf("Error on exist key")
|
||||
}
|
||||
if v != "bar" {
|
||||
|
|
Loading…
Reference in New Issue