mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
Merge pull request #10173 from ClickHouse/fix_url_engine
Add retries to 00646_url_engine test
This commit is contained in:
commit
3b85ef27a4
@ -2,6 +2,7 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import csv
|
import csv
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
import tempfile
|
import tempfile
|
||||||
import threading
|
import threading
|
||||||
import os, urllib
|
import os, urllib
|
||||||
@ -180,7 +181,15 @@ def main():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
exception_text = ''
|
||||||
main()
|
for i in range(1, 5):
|
||||||
except:
|
try:
|
||||||
|
main()
|
||||||
|
break
|
||||||
|
except Exception as ex:
|
||||||
|
exception_text = str(ex)
|
||||||
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
if exception_text:
|
||||||
|
print("Exception: {}".format(exception_text), file=sys.stderr)
|
||||||
os._exit(1)
|
os._exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user