Skip to content

Commit

Permalink
Adjsut test
Browse files Browse the repository at this point in the history
  • Loading branch information
fizyk committed Mar 18, 2021
1 parent 19eb4b2 commit a70a6a6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_executor.py
Expand Up @@ -104,11 +104,13 @@ def test_proc_with_password(
host=postgres_with_password.host,
port=postgres_with_password.port)

postgresql_max_conns_proc = postgresql_proc(postgres_options='-N 11')

postgresql_max_conns_proc = postgresql_proc(postgres_options='-N 42')
postgres_max_conns = postgresql('postgresql_max_conns_proc')


def test_postgres_options(postgres_max_conns):
"""Check that max connections (-N 11) is honored."""
"""Check that max connections (-N 42) is honored."""
cur = postgres_max_conns.cursor()
cur.execute('SHOW max_connections')
assert cur.fetchone() == ('11',)
assert cur.fetchone() == ('42',)

0 comments on commit a70a6a6

Please sign in to comment.