Skip to content

Commit

Permalink
gorm connection mysql add autoReconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
clarechu committed Feb 12, 2020
1 parent 34f3381 commit 54c73b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions starter/gorm/datasource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ func TestDataSourceOpen(t *testing.T) {
Loc: "Asia/Shanghai",
NowRetryTimes: 0,
RetryTimes: 2,
Interval: "1s",
AutoReconnect: true,
Config: Config{
Decrypt: true,
},
Decrypt: true,
},
}
dataSource := new(dataSource)

Expand Down

0 comments on commit 54c73b2

Please sign in to comment.