1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 17:20:50 +00:00

modify travis and redis_sentinel test

This commit is contained in:
JessonChan 2019-01-22 19:29:53 +08:00
parent 2956d33bab
commit 00264650b5
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ after_script:
- rm -rf ./res/var/*
script:
- go test -v ./...
- staticcheck -show-ignored $(go list ./... | grep -v /vendor/)
- staticcheck -show-ignored
- unconvert $(go list ./... | grep -v /vendor/)
- ineffassign .
- find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s

View File

@ -15,7 +15,7 @@ func TestRedisSentinel(t *testing.T) {
Maxlifetime: 3600,
Secure: false,
CookieLifeTime: 3600,
ProviderConfig: "119.23.132.234:26379,100,,0,master",
ProviderConfig: "127.0.0.1:26379,100,,0,master",
}
globalSessions, _ := session.NewManager("redis_sentinel", sessionConfig)
go globalSessions.GC()