From efa4ecaa7c86b5baee12e735570ceae7690aeb75 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 5 May 2021 15:47:13 +0300 Subject: [PATCH] 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. --- integration_tests/tests/test_pageserver.rs | 2 +- test_runner/test_pgbench.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration_tests/tests/test_pageserver.rs b/integration_tests/tests/test_pageserver.rs index ce0aa635ff..c90bb72b6c 100644 --- a/integration_tests/tests/test_pageserver.rs +++ b/integration_tests/tests/test_pageserver.rs @@ -80,7 +80,7 @@ fn pgbench() { let node = compute_cplane.new_test_node(maintli); node.start().unwrap(); - let status = node.pg_bench(10, 100); + let status = node.pg_bench(10, 5); assert!(status.success()); } diff --git a/test_runner/test_pgbench.py b/test_runner/test_pgbench.py index d04e7077e3..33c2be8aad 100644 --- a/test_runner/test_pgbench.py +++ b/test_runner/test_pgbench.py @@ -7,4 +7,4 @@ 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 100 -P 1 -M prepared postgres'.split()) + 'pgbench -h localhost -p 55432 -c 10 -T 5 -P 1 -M prepared postgres'.split())