Explorar el Código

Updates Context tests

Manu Mtz-Almeida hace 11 años
padre
commit
c0e8cedc98
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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" {