Browse Source

Updates Context tests

Manu Mtz-Almeida 10 năm trước cách đây
mục cha
commit
c0e8cedc98
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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" {