Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
chesterli29 committed Dec 31, 2024
1 parent ef562da commit 2b5dba1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,10 @@ def test_k8s_config_with_invalid_config(monkeypatch, tmp_path,
try:
sky.launch(task, cluster_name=cluster_name, dryrun=True)
except sky.exceptions.ResourcesUnavailableError as e:
assert 'Invalid pod_config. Deatils: Invalid spec: \
Invalid value for `name`, must not be `None`' in str(e)
expect_error_message = (
'Invalid pod_config. Deatils: '
'Invalid spec: Invalid value for `name`, must not be `None`')
assert expect_error_message in str(e)
exception_occurred = True
assert exception_occurred

Expand Down

0 comments on commit 2b5dba1

Please sign in to comment.