Skip to content

Commit 5bc7769

Browse files
committed
Set stress_in_progress as global
1 parent 91d7754 commit 5bc7769

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_cases.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def pg_query_state(config, pid, verbose=False, costs=False, timing=False, \
103103
Save any warning, info, notice and log data in global variable 'notices'
104104
"""
105105

106-
global notices
106+
global notices, stress_in_progress
107107

108108
conn = psycopg2.connect(**config)
109109
curs = conn.cursor()
@@ -561,6 +561,8 @@ def load_tpcds_data(config):
561561

562562
def stress_test(config):
563563
"""TPC-DS stress test"""
564+
global stress_in_progress
565+
564566
stress_in_progress = True
565567
load_tpcds_data(config)
566568

0 commit comments

Comments
 (0)