Skip to content

Commit 26db621

Browse files
committed
Resolve conflicts
Signed-off-by: Xing Liu <xingliu14@gmail.com>
1 parent 575d181 commit 26db621

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/worker/tpu_worker_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,22 @@ def test_init_success(self, mock_vllm_config):
6363
assert worker.profile_dir is None
6464
assert worker.devices == ['tpu:0']
6565

66-
@patch('tpu_inference.worker.tpu_worker_jax.vllm_envs')
66+
@patch('tpu_inference.worker.tpu_worker.vllm_envs')
6767
def test_init_with_profiler_on_rank_zero(self, mock_envs,
6868
mock_vllm_config):
6969
"""Tests that the profiler directory is set correctly on rank 0."""
70-
mock_vllm_envs.VLLM_TORCH_PROFILER_DIR = "/tmp/profiles"
70+
mock_envs.VLLM_TORCH_PROFILER_DIR = "/tmp/profiles"
7171
worker = TPUWorker(vllm_config=mock_vllm_config,
7272
local_rank=0,
7373
rank=0,
7474
distributed_init_method="test_method")
7575
assert worker.profile_dir == "/tmp/profiles"
7676

77-
@patch('tpu_inference.worker.tpu_worker_jax.vllm_envs')
77+
@patch('tpu_inference.worker.tpu_worker.vllm_envs')
7878
def test_init_with_profiler_on_other_ranks(self, mock_envs,
7979
mock_vllm_config):
8080
"""Tests that the profiler directory is NOT set on non-rank 0 workers."""
81-
mock_vllm_envs.VLLM_TORCH_PROFILER_DIR = "/tmp/profiles"
81+
mock_envs.VLLM_TORCH_PROFILER_DIR = "/tmp/profiles"
8282
worker = TPUWorker(vllm_config=mock_vllm_config,
8383
local_rank=1,
8484
rank=1,

0 commit comments

Comments
 (0)