Sync time before running time_jump_test

pull/21287/head
Prashant Jaikumar 5 years ago
parent b4d6916552
commit d023aba60e
  1. 4
      tools/internal_ci/macos/grpc_run_bazel_isolated_tests.sh

@ -23,6 +23,10 @@ cd $(dirname $0)/../../..
# run cfstream_test separately because it messes with the network
tools/bazel test $RUN_TESTS_FLAGS --spawn_strategy=standalone --genrule_strategy=standalone --test_output=all //test/cpp/end2end:cfstream_test
# 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
# run time_jump_test separately because it changes system time
tools/bazel test $RUN_TESTS_FLAGS --spawn_strategy=standalone --genrule_strategy=standalone --test_output=all //test/cpp/common:time_jump_test

Loading…
Cancel
Save