Files
neon/test_runner/test_pgbench.py
Heikki Linnakangas efa4ecaa7c Reduce the duration of the pgbench test.
We'll want to run it for longer when doing benchmarking, but 5 seconds
should be enough to tease out any basic bugs.
2021-05-05 15:47:13 +03:00

11 lines
310 B
Python

import pytest
pytest_plugins = ("fixtures.zenith_fixtures")
def test_pgbench(zen_simple):
zen_simple.pg_bin.run_capture(
'pgbench -h localhost -p 55432 -i postgres'.split())
zen_simple.pg_bin.run_capture(
'pgbench -h localhost -p 55432 -c 10 -T 5 -P 1 -M prepared postgres'.split())