Switch back readonly mode after test finish

This commit is contained in:
Dan Sosedoff 2019-02-20 18:22:44 -06:00
parent 40eb74529e
commit 5bb6378e94

View File

@ -430,6 +430,9 @@ func testHistoryUniqueness(t *testing.T) {
func testReadOnlyMode(t *testing.T) {
command.Opts.ReadOnly = true
defer func() {
command.Opts.ReadOnly = false
}()
url := fmt.Sprintf("postgres://%s@%s:%s/%s?sslmode=disable", serverUser, serverHost, serverPort, serverDatabase)
client, _ := NewFromUrl(url, nil)