Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: Use stdin/out defined in command #3199

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 2 commits into from
Jul 26, 2022

Conversation

mafredri
Copy link
Member

This was causing dirty test output.

@mafredri mafredri self-assigned this Jul 26, 2022
@mafredri mafredri requested a review from a team July 26, 2022 11:13
@@ -97,8 +96,6 @@ func TestStatePush(t *testing.T) {
err = stateFile.Close()
require.NoError(t, err)
cmd, root := clitest.New(t, "state", "push", workspace.Name, stateFile.Name())
cmd.SetErr(io.Discard)
cmd.SetOut(io.Discard)
Copy link
Member Author

Choose a reason for hiding this comment

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

These are just no longer needed (cleanup).

@mafredri mafredri merged commit 159137d into main Jul 26, 2022
@mafredri mafredri deleted the mafredri/fix-cli-test-stdout-dirtying branch July 26, 2022 14:23
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