revert change in cluster_test

This commit is contained in:
Felix Kunde 2021-05-11 09:58:52 +02:00
parent 635c81e70f
commit e75f5b5240
1 changed files with 3 additions and 3 deletions

View File

@ -733,7 +733,7 @@ func TestInitSystemUsers(t *testing.T) {
cl.OpConfig.ConnectionPooler.User = "pooler"
cl.initSystemUsers()
if _, exist := cl.systemUsers["pooler"]; !exist {
if _, exist := cl.pgUsers["pooler"]; !exist {
t.Errorf("%s, Superuser is not allowed to be a connection pool user", testName)
}
@ -745,7 +745,7 @@ func TestInitSystemUsers(t *testing.T) {
cl.OpConfig.ProtectedRoles = []string{"admin"}
cl.initSystemUsers()
if _, exist := cl.systemUsers["pooler"]; !exist {
if _, exist := cl.pgUsers["pooler"]; !exist {
t.Errorf("%s, Protected user are not allowed to be a connection pool user", testName)
}
@ -755,7 +755,7 @@ func TestInitSystemUsers(t *testing.T) {
}
cl.initSystemUsers()
if _, exist := cl.systemUsers["pooler"]; !exist {
if _, exist := cl.pgUsers["pooler"]; !exist {
t.Errorf("%s, System users are not allowed to be a connection pool user", testName)
}
}