Merge pull request #10173 from ClickHouse/fix_url_engine

Add retries to 00646_url_engine test
This commit is contained in:
alexey-milovidov 2020-04-11 22:53:26 +03:00 committed by GitHub
commit 3b85ef27a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)