Merge pull request #23993 from yulin-liang/flaky-cfstream

Fix flaky macos/grpc_cfstream test.
reviewable/pr24030/r1
yulin liang 4 years ago committed by GitHub
commit 749024c2c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tools/internal_ci/macos/grpc_run_bazel_isolated_tests.sh

@ -24,6 +24,12 @@ cd $(dirname $0)/../../..
# The "local" execution strategy is required because the test runs sudo and that doesn't work in a sandboxed environment (the default on mac)
tools/bazel test $RUN_TESTS_FLAGS --spawn_strategy=local --genrule_strategy=local --test_output=all --copt="-DGRPC_CFSTREAM=1" //test/cpp/end2end:cfstream_test
# Missing the /var/db/ntp-kod file may breaks the ntp synchronization.
# Create the file and change the ownership to root before NTP sync.
# TODO(yulin-liang): investigate how to run time_jump_test without needing to mess with the system time directly.
# See b/166245303
sudo touch /var/db/ntp-kod
sudo chown root:wheel /var/db/ntp-kod
# Make sure time is in sync before running time_jump_test because the test does
# NTP sync before exiting. Bazel gets confused if test end time < start time.
sudo sntp -sS pool.ntp.org

Loading…
Cancel
Save