From dc278da17c34d8f2892fcfb2e3158e6f05a66f64 Mon Sep 17 00:00:00 2001 From: astaxie Date: Fri, 8 Jan 2016 23:30:19 +0800 Subject: [PATCH] fix the sqlite3 & cache sleep 11 second --- .travis.yml | 2 +- cache/redis/redis_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7b566d9b..c59cef61 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/cache/redis/redis_test.go b/cache/redis/redis_test.go index 1f74fd27..142b6d3c 100644 --- a/cache/redis/redis_test.go +++ b/cache/redis/redis_test.go @@ -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")