Skip to content

Commit 3beb0a7

Browse files
committed
Fix render depth tests
1 parent 1cb5ad9 commit 3beb0a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/test_sensors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_camera_rays():
3535
@pytest.mark.unit
3636
def test_render_depth(device: str):
3737
"""Test render_depth with different resolutions."""
38-
sim = Sim(n_worlds=2)
38+
sim = Sim(n_worlds=2, device=device)
3939
dist = render_depth(sim, camera=0, resolution=(10, 10))
4040
assert dist.shape == (2, 10, 10), f"Expected shape (2, 10, 10), got {dist.shape}"
4141
assert dist.device == jax.devices(device)[0], f"Expected device {device}, got {dist.device}"

0 commit comments

Comments
 (0)