workaround C# commandlineparser bug

pull/23740/head
Jan Tattermusch 5 years ago
parent 6c82a2df0c
commit 6eda547607
  1. 7
      tools/run_tests/run_xds_tests.py

@ -1715,7 +1715,12 @@ try:
metadata_to_send = '--metadata="EmptyCall:{key}:{value}"'.format(
key=_TEST_METADATA_KEY, value=_TEST_METADATA_VALUE)
else:
metadata_to_send = '--metadata=""'
# Setting the arg explicitly to empty with '--metadata=""'
# makes C# client fail
# (see https://github.com/commandlineparser/commandline/issues/412),
# so instead we just rely on clients using the default when
# metadata arg is not specified.
metadata_to_send = ''
if test_case in _TESTS_TO_FAIL_ON_RPC_FAILURE:
fail_on_failed_rpc = '--fail_on_failed_rpc=true'

Loading…
Cancel
Save