hunk.code_window:     @ray.remote
       def f():
           assert ray._config.object_timeout_milliseconds() == 12345
           assert ray._config.num_heartbeats_timeout() == 20
       ray.get([f.remote() for _ in range(5)])
       cluster.remove_node(worker, allow_graceful=False)
       time.sleep(1)
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:         assert ray._config.num_heartbeats_timeout() == 2
  
hunk.file_path: python/ray/tests/test_multi_node_2.py
hunk.type: replace
file: #!/bin/bash
  
  rm -f last_checkpoint.out
  pkill -f cartpole_server.py
  sleep 1
  
  if [ -f test_local_inference.sh ]; then
      basedir="../../examples/serving"
  else
      basedir="rllib/examples/serving"  # In bazel.
  fi
  
  # Do not attempt to restore from checkpoint; leads to errors on travis.
  (python $basedir/cartpole_server.py --run=PPO --no-restore 2>&1 | grep -v 200) &
  pid=$!
  
  echo "Waiting for server to start"
  while ! curl localhost:9900; do
    sleep 1
  done
  
  sleep 2
  python $basedir/cartpole_client.py --stop-reward=150 --inference-mode=local
  kill $pid
  