From 45a83fc53c7d1417cf8fd0f1d73ea234b6506049 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 14 Mar 2019 00:23:46 +0800 Subject: [PATCH] unit test cases update for package gins --- g/frame/gins/gins_database_test.go | 5 ++++- g/frame/gins/gins_redis_test.go | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/g/frame/gins/gins_database_test.go b/g/frame/gins/gins_database_test.go index 1a2221567..e40a2353f 100644 --- a/g/frame/gins/gins_database_test.go +++ b/g/frame/gins/gins_database_test.go @@ -7,6 +7,7 @@ package gins_test import ( + "fmt" "github.com/gogf/gf/g/frame/gins" "github.com/gogf/gf/g/os/gfile" "github.com/gogf/gf/g/test/gtest" @@ -17,7 +18,7 @@ func Test_Database(t *testing.T) { config := ` # 模板引擎目录 viewpath = "/home/www/templates/" -test = "v=1" +test = "v=2" # MySQL数据库配置 [database] [[database.default]] @@ -54,6 +55,8 @@ test = "v=1" defer gins.Config().Reload() gtest.Case(t, func() { + fmt.Println("gins Test_Database", gins.Config().Get("test")) + dbDefault := gins.Database() dbTest := gins.Database("test") gtest.AssertNE(dbDefault, nil) diff --git a/g/frame/gins/gins_redis_test.go b/g/frame/gins/gins_redis_test.go index 4af79b1e4..8c252b6af 100644 --- a/g/frame/gins/gins_redis_test.go +++ b/g/frame/gins/gins_redis_test.go @@ -7,6 +7,7 @@ package gins_test import ( + "fmt" "github.com/gogf/gf/g/frame/gins" "github.com/gogf/gf/g/os/gfile" "github.com/gogf/gf/g/test/gtest" @@ -17,7 +18,7 @@ func Test_Redis(t *testing.T) { config := ` # 模板引擎目录 viewpath = "/home/www/templates/" -test = "v=1" +test = "v=3" # MySQL数据库配置 [database] [[database.default]] @@ -54,6 +55,8 @@ test = "v=1" defer gins.Config().Reload() gtest.Case(t, func() { + fmt.Println("gins Test_Redis", gins.Config().Get("test")) + redisDefault := gins.Redis() redisCache := gins.Redis("cache") gtest.AssertNE(redisDefault, nil)