Skip to content

Agent Mesh

fix linter

Antonio Ojea5566ed0b4e37
diff --git a/cmd/sam-node/oidc_test.go b/cmd/sam-node/oidc_test.go
index 1d32b3e3..857568f6 100644
--- a/cmd/sam-node/oidc_test.go
+++ b/cmd/sam-node/oidc_test.go
@@ -6,20 +6,13 @@ import (
"net/http"
"net/http/httptest"
"net/url"
- "os"
"testing"
"time"
)
func TestInteractiveLogin(t *testing.T) {
- origSSHClient := os.Getenv("SSH_CLIENT")
- origSSHTTY := os.Getenv("SSH_TTY")
- os.Unsetenv("SSH_CLIENT")
- os.Unsetenv("SSH_TTY")
- defer func() {
- os.Setenv("SSH_CLIENT", origSSHClient)
- os.Setenv("SSH_TTY", origSSHTTY)
- }()
+ t.Setenv("SSH_CLIENT", "")
+ t.Setenv("SSH_TTY", "")
mux := http.NewServeMux()