Skip to content

fix: avoid logging env in unit tests #9885

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 4 commits into from
Sep 27, 2023
Merged

fix: avoid logging env in unit tests #9885

merged 4 commits into from
Sep 27, 2023

Conversation

johnstcn
Copy link
Member

Seen here: https://github.com/coder/coder/actions/runs/6317011693/job/17152855571#step:5:4736

Although Github Actions does auto-censor this sort of thing, better safe than sorry.

@johnstcn johnstcn self-assigned this Sep 27, 2023
@johnstcn johnstcn requested review from mafredri and mtojek September 27, 2023 11:44
@@ -54,7 +54,7 @@ func TestStart(t *testing.T) {
Height: 24,
},
}))
pty, ps := ptytest.Start(t, pty.Command("env"), opts)
pty, ps := ptytest.Start(t, pty.Command("grep", "--binary-files=text", `SSH_TTY=/dev/`, "/proc/self/environ"), opts)
Copy link
Member

Choose a reason for hiding this comment

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

(Mostly) same as above.

@johnstcn johnstcn merged commit fad0208 into main Sep 27, 2023
@johnstcn johnstcn deleted the cj/ssh_test_rm_env branch September 27, 2023 12:34
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants