-
Notifications
You must be signed in to change notification settings - Fork 237
First try with role reset #427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -241,6 +241,18 @@ | |
|
|
||
| expect(processes.primary.count_query("DISCARD ALL")).to eq(10) | ||
| end | ||
|
|
||
| it "Resets server roles correctly" do | ||
| 10.times do | ||
| conn = PG::connect(processes.pgcat.connection_string("sharded_db", "sharding_user")) | ||
| conn.async_exec("SET SERVER ROLE to 'primary'") | ||
| conn.async_exec("SELECT 1") | ||
| conn.async_exec("SET statement_timeout to 5000") | ||
| conn.close | ||
| end | ||
|
|
||
| expect(processes.primary.count_query("RESET ROLE;")).to eq(10) | ||
|
||
| end | ||
| end | ||
|
|
||
| context "transaction mode" do | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.