We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6450177 commit 0928b8bCopy full SHA for 0928b8b
cli/root_test.go
@@ -54,12 +54,10 @@ func TestCommandHelp(t *testing.T) {
54
for _, tt := range tests {
55
tt := tt
56
t.Run(tt.name, func(t *testing.T) {
57
- // Unset all CODER_ environment variables for a clean slate.
+ // Unset all environment variables for a clean slate.
58
for _, kv := range os.Environ() {
59
name := strings.Split(kv, "=")[0]
60
- if _, ok := tt.env[name]; !ok && strings.HasPrefix(name, "CODER_") {
61
- t.Setenv(name, "")
62
- }
+ t.Setenv(name, "")
63
}
64
// Override environment variables for a reproducible test.
65
for k, v := range tt.env {
0 commit comments