Merge pull request #574 from dz1984/fix/cache_test
Fix/cache test
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -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 { | ... | ... |
-
Please register or sign in to post a comment