Skip to content

Commit e774164

Browse files
swissspidyclaude
andcommitted
Put the failing ID first in the mixed comment delete scenario
With the failing ID last, the return code assertion also passed if only the last deletion's result set the exit status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UWTd5pwpi2xQfDA6mUYkkx
1 parent 4b1fd3c commit e774164

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎features/comment.feature‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ Feature: Manage WordPress comments
634634
And I run `wp comment create --comment_post_ID=1 --comment_content='Comment 2' --porcelain`
635635
And save STDOUT as {COMMENT_ID_2}
636636

637-
When I try `wp comment delete {COMMENT_ID_1} {COMMENT_ID_2} 99999`
637+
When I try `wp comment delete 99999 {COMMENT_ID_1} {COMMENT_ID_2}`
638638
Then STDOUT should contain:
639639
"""
640640
Success: Trashed comment {COMMENT_ID_1}.

0 commit comments

Comments
 (0)