fix the sqlite3 & cache sleep 11 second

This commit is contained in:
astaxie 2016-01-08 23:30:19 +08:00
parent c7146d22f4
commit dc278da17c
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ services:
- postgresql
- memcached
env:
- ORM_DRIVER=sqlite ORM_SOURCE=$TRAVIS_BUILD_DIR/orm_test.db
- ORM_DRIVER=sqlite3 ORM_SOURCE=$TRAVIS_BUILD_DIR/orm_test.db
- ORM_DRIVER=mysql ORM_SOURCE="root:@/orm_test?charset=utf8"
- ORM_DRIVER=postgres ORM_SOURCE="user=postgres dbname=orm_test sslmode=disable"
install:

View File

@ -35,7 +35,7 @@ func TestRedisCache(t *testing.T) {
t.Error("check err")
}
time.Sleep(10 * time.Second)
time.Sleep(11 * time.Second)
if bm.IsExist("astaxie") {
t.Error("check err")