Skip to content

Commit 03fba81

Browse files
committed
support both type options
1 parent 820eb68 commit 03fba81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testground/benchmark/benchmark/stateless.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def gen(
4646
hostname_template=HOSTNAME_TEMPLATE,
4747
options={},
4848
):
49+
if isinstance(options, str):
50+
options = json.loads(options)
4951
print("options", options)
5052
validators = options.get("validators", 3)
5153
fullnodes = options.get("fullnodes", 7)

0 commit comments

Comments
 (0)