This test is not executed by the pre-commit CI, so the failure went unnoticed after #80495. This PR updates the test to make the CI pass. rdar://148665873