MCPcopy Create free account
hub / github.com/apache/arrow / _wait_for_minio_startup

Function _wait_for_minio_startup

python/pyarrow/tests/util.py:350–359  ·  view source on GitHub ↗
(mcdir, address, access_key, secret_key)

Source from the content-addressed store, hash-verified

348
349
350def _wait_for_minio_startup(mcdir, address, access_key, secret_key):
351 start = time.time()
352 while time.time() - start < 10:
353 try:
354 _run_mc_command(mcdir, 'alias', 'set', 'myminio',
355 f'http://{address}', access_key, secret_key)
356 return
357 except ChildProcessError:
358 time.sleep(1)
359 raise Exception("mc command could not connect to local minio")
360
361
362def _run_mc_command(mcdir, *args):

Callers 1

Calls 2

_run_mc_commandFunction · 0.85
timeMethod · 0.80

Tested by

no test coverage detected