931e6162 by astaxie

Merge pull request #574 from dz1984/fix/cache_test

Fix/cache test
2 parents f9cc9e9e 18f70e6e
...@@ -40,7 +40,7 @@ func TestCache(t *testing.T) { ...@@ -40,7 +40,7 @@ func TestCache(t *testing.T) {
40 } 40 }
41 41
42 if err = bm.Decr("astaxie"); err != nil { 42 if err = bm.Decr("astaxie"); err != nil {
43 t.Error("Incr Error", err) 43 t.Error("Decr Error", err)
44 } 44 }
45 45
46 if v := bm.Get("astaxie"); v.(int) != 1 { 46 if v := bm.Get("astaxie"); v.(int) != 1 {
...@@ -77,7 +77,7 @@ func TestFileCache(t *testing.T) { ...@@ -77,7 +77,7 @@ func TestFileCache(t *testing.T) {
77 } 77 }
78 78
79 if err = bm.Decr("astaxie"); err != nil { 79 if err = bm.Decr("astaxie"); err != nil {
80 t.Error("Incr Error", err) 80 t.Error("Decr Error", err)
81 } 81 }
82 82
83 if v := bm.Get("astaxie"); v.(int) != 1 { 83 if v := bm.Get("astaxie"); v.(int) != 1 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!