You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/test/tap/tests/reg_test_3223_scripts/timeout_script.py

21 lines
368 B

#!/usr/bin/env python
"""Simple script to force a timeout failure in RESTAPI."""
import time
import json
random_dic = {}
if __name__ == "__main__":
# Forcing the timeout
time.sleep(10)
# Return random JSON
for i in range(0, 20):
random_dic["id_" + str(i)] = "0000000000"
j_random_dic = json.dumps(random_dic)
print(j_random_dic)