浏览代码

Updates Context tests

Manu Mtz-Almeida 10 年之前
父节点
当前提交
c0e8cedc98
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      context_test.go

+ 2 - 2
context_test.go

@@ -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" {