소스 검색

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