Skip to content

Commit

Permalink
Merge pull request sorintlab#673 from sgotti/fix_missing_rebase_of_PR…
Browse files Browse the repository at this point in the history
…_668

tests: fix missing rebase of PR sorintlab#668
  • Loading branch information
sgotti authored Jun 13, 2019
2 parents bfb8c9c + ba25164 commit 81425db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func TestWalKeepSegments(t *testing.T) {
}

// "archive" isn't an accepted wal_level
err = StolonCtl(clusterName, tstore.storeBackend, storeEndpoints, "update", "--patch", `{ "pgParameters" : { "wal_level": "archive" } }`)
err = StolonCtl(t, clusterName, tstore.storeBackend, storeEndpoints, "update", "--patch", `{ "pgParameters" : { "wal_level": "archive" } }`)
if err != nil {
t.Fatalf("unexpected err: %v", err)
}
Expand All @@ -330,7 +330,7 @@ func TestWalKeepSegments(t *testing.T) {
}

// test setting a wal_keep_segments value greater than the default
err = StolonCtl(clusterName, tstore.storeBackend, storeEndpoints, "update", "--patch", `{ "pgParameters" : { "wal_keep_segments": "20" } }`)
err = StolonCtl(t, clusterName, tstore.storeBackend, storeEndpoints, "update", "--patch", `{ "pgParameters" : { "wal_keep_segments": "20" } }`)
if err != nil {
t.Fatalf("unexpected err: %v", err)
}
Expand All @@ -357,7 +357,7 @@ func TestWalKeepSegments(t *testing.T) {
}

// test setting a wal_keep_segments value less than the default
err = StolonCtl(clusterName, tstore.storeBackend, storeEndpoints, "update", "--patch", `{ "pgParameters" : { "wal_keep_segments": "5" } }`)
err = StolonCtl(t, clusterName, tstore.storeBackend, storeEndpoints, "update", "--patch", `{ "pgParameters" : { "wal_keep_segments": "5" } }`)
if err != nil {
t.Fatalf("unexpected err: %v", err)
}
Expand All @@ -384,7 +384,7 @@ func TestWalKeepSegments(t *testing.T) {
}

// test setting a bad wal_keep_segments value
err = StolonCtl(clusterName, tstore.storeBackend, storeEndpoints, "update", "--patch", `{ "pgParameters" : { "wal_keep_segments": "badvalue" } }`)
err = StolonCtl(t, clusterName, tstore.storeBackend, storeEndpoints, "update", "--patch", `{ "pgParameters" : { "wal_keep_segments": "badvalue" } }`)
if err != nil {
t.Fatalf("unexpected err: %v", err)
}
Expand Down

0 comments on commit 81425db

Please sign in to comment.