Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
chesterli29 committed Dec 26, 2024
1 parent 0471b4c commit 98a1d84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,12 @@ def test_k8s_config_with_invalid_config(monkeypatch, tmp_path,
# Test Kubernetes pod_config invalid
cluster_name = 'test_k8s_config_with_invalid_config'
task.set_resources_override({'cloud': sky.Kubernetes()})
exception = None
exception_occurred = False
try:
sky.launch(task, cluster_name=cluster_name, dryrun=True)
except sky.exceptions.ResourcesUnavailableError as e:
exception = e
assert not exception
except sky.exceptions.ResourcesUnavailableError:
exception_occurred = True
assert exception_occurred


def test_gcp_config_with_override(monkeypatch, tmp_path,
Expand Down

0 comments on commit 98a1d84

Please sign in to comment.