Switch back readonly mode after test finish
This commit is contained in:
parent
40eb74529e
commit
5bb6378e94
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user