mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Retry if plasma client fails to connect to plasma store.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
import unittest
|
||||
|
||||
import plasma
|
||||
@@ -12,7 +11,6 @@ class TestPlasmaAPI(unittest.TestCase):
|
||||
# Start Plasma.
|
||||
plasma_store_executable = os.path.join(os.path.abspath(os.path.dirname(__file__)), "../build/plasma_store")
|
||||
self.p = subprocess.Popen([plasma_store_executable, "-s", "/tmp/store"])
|
||||
time.sleep(0.1)
|
||||
# Connect to Plasma.
|
||||
self.plasma_client = plasma.PlasmaClient("/tmp/store")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user