Skip to content

update failure case #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 24, 2024
Merged

update failure case #5

merged 3 commits into from
May 24, 2024

Conversation

rohitpaulk
Copy link
Member

No description provided.

The changes in the diff include refactoring the shell_executable package in the condition_reader/condition_reader.go file. The
ReadBytesUntil and ReadBytesUntilTimeout methods now wrap the reader error to handle program exit errors properly.

In the stage4.go file, the error handling for program exit in the testExit function has been updated to check for the
ErrProgramExited error instead of specific error types.

Additionally, there is a change in the fixtures/missing_command/wrong_output file, which shows that the program exited instead of
reaching EOF.

Commit message: "Refactor shell_executable package and fix error handling in stage4.go"
@rohitpaulk rohitpaulk merged commit b719779 into main May 24, 2024
2 checks passed
@rohitpaulk rohitpaulk deleted the handle-failure branch May 24, 2024 18:31
@rohitpaulk rohitpaulk requested a review from ryan-gang May 24, 2024 18:31
@rohitpaulk
Copy link
Member Author

@ryan-gang tagging you for a post-merge review - merging since I want to use this when testing the challenge

Copy link
Collaborator

@ryan-gang ryan-gang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow missed making any comments at that time.
Everything looks good over here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants