1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-21 02:45:31 +00:00

Merge pull request from dz1984/fix/cache_test

Fix/cache test
This commit is contained in:
astaxie
2014-04-09 14:42:01 +08:00

4
cache/cache_test.go vendored

@@ -40,7 +40,7 @@ func TestCache(t *testing.T) {
}
if err = bm.Decr("astaxie"); err != nil {
t.Error("Incr Error", err)
t.Error("Decr Error", err)
}
if v := bm.Get("astaxie"); v.(int) != 1 {
@@ -77,7 +77,7 @@ func TestFileCache(t *testing.T) {
}
if err = bm.Decr("astaxie"); err != nil {
t.Error("Incr Error", err)
t.Error("Decr Error", err)
}
if v := bm.Get("astaxie"); v.(int) != 1 {