Browse Source

Updates Context tests

Manu Mtz-Almeida 10 years ago
parent
commit
c0e8cedc98
1 changed files with 2 additions and 2 deletions
  1. 2 2
      context_test.go

+ 2 - 2
context_test.go

@@ -47,8 +47,8 @@ func TestContextSetGet(t *testing.T) {
 		// Set
 		// Set
 		c.Set("foo", "bar")
 		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")
 			t.Errorf("Error on exist key")
 		}
 		}
 		if v != "bar" {
 		if v != "bar" {