Skip to content

Commit ae2f203

Browse files
Peter Wilhelmsson2hdddg
authored andcommitted
Choose stress test suite depending on in cluster or not
1 parent b76dc73 commit ae2f203

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

testkit/stress.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@
1414
os.environ["TEST_NEO4J_HOST"],
1515
os.environ["TEST_NEO4J_PORT"])
1616
password = os.environ["TEST_NEO4J_PASS"]
17+
is_cluster = os.environ.get("TEST_NEO4J_IS_CLUSTER", False)
18+
if is_cluster:
19+
suite = "CausalClusteringStressIT"
20+
else:
21+
suite = "SingeInstanceStressIT"
22+
1723
cmd = [
1824
"mvn", "surefire:test",
19-
"-Dtest=CausalClusteringStressIT,AbstractStressTestBase",
25+
"-Dtest=%s,AbstractStressTestBase" % suite,
2026
"-DexternalClusterUri=%s" % uri,
2127
"-Dneo4jUserPassword=%s" % password,
2228
"-DthreadCount=10",

0 commit comments

Comments
 (0)