Skip to content

Commit

Permalink
Fix image test
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed Feb 8, 2025
1 parent db8912c commit b48122e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/image_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from unittest import mock

import modal
from modal import App, Dict, Image, Secret, build, environments, gpu, method
from modal import App, Dict, Image, Secret, build, environments, method
from modal._serialization import serialize
from modal._utils.async_utils import synchronizer
from modal.client import Client
Expand Down Expand Up @@ -1001,7 +1001,7 @@ def test_image_gpu(builder_version, servicer, client):
layers = get_image_layers(app.image.object_id, servicer)
assert layers[0].gpu_config.gpu_type == "ANY"

app = App(image=Image.debian_slim().run_commands("echo 2", gpu=gpu.A10G()))
app = App(image=Image.debian_slim().run_commands("echo 2", gpu="a10g"))
app.function()(dummy)
with app.run(client=client):
layers = get_image_layers(app.image.object_id, servicer)
Expand Down

0 comments on commit b48122e

Please sign in to comment.