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:
parent
2956d33bab
commit
00264650b5
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user