зеркало из https://github.com/github/vitess-gh.git
examples/local: Fix default client.py server address for gRPC.
This commit is contained in:
Родитель
5be7ca8b56
Коммит
01c9267a9b
|
@ -25,7 +25,7 @@ UNSHARDED = [keyrange.KeyRange(keyrange_constants.NON_PARTIAL_KEYRANGE)]
|
|||
|
||||
# Parse args
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--server', dest='server', default='localhost:15001')
|
||||
parser.add_argument('--server', dest='server', default='localhost:15991')
|
||||
parser.add_argument('--timeout', dest='timeout', type=float, default='10.0')
|
||||
args = parser.parse_args()
|
||||
|
||||
|
|
|
@ -57,7 +57,9 @@ done
|
|||
echo "Run Python client script..."
|
||||
# Retry until vtgate is ready.
|
||||
start=`date +%s`
|
||||
until ./client.sh --server=localhost:15991 ; do
|
||||
# Test that the client.sh script works with no --server arg,
|
||||
# because that's how the tutorial says to run it.
|
||||
until ./client.sh ; do
|
||||
retry_with_timeout
|
||||
done
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче