Switch back readonly mode after test finish
This commit is contained in:
@@ -430,6 +430,9 @@ func testHistoryUniqueness(t *testing.T) {
|
|||||||
|
|
||||||
func testReadOnlyMode(t *testing.T) {
|
func testReadOnlyMode(t *testing.T) {
|
||||||
command.Opts.ReadOnly = true
|
command.Opts.ReadOnly = true
|
||||||
|
defer func() {
|
||||||
|
command.Opts.ReadOnly = false
|
||||||
|
}()
|
||||||
|
|
||||||
url := fmt.Sprintf("postgres://%s@%s:%s/%s?sslmode=disable", serverUser, serverHost, serverPort, serverDatabase)
|
url := fmt.Sprintf("postgres://%s@%s:%s/%s?sslmode=disable", serverUser, serverHost, serverPort, serverDatabase)
|
||||||
client, _ := NewFromUrl(url, nil)
|
client, _ := NewFromUrl(url, nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user