From 5ad3c65ae1d7789e24bd2d74a348aa2b6b2aa6ab Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Tue, 15 Dec 2020 12:24:28 -0600 Subject: [PATCH] Close the right pipe output in runPinnipedLoginOIDC. Signed-off-by: Matt Moyer --- test/integration/cli_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/cli_test.go b/test/integration/cli_test.go index 8de33728..a859dcac 100644 --- a/test/integration/cli_test.go +++ b/test/integration/cli_test.go @@ -254,7 +254,7 @@ func runPinnipedLoginOIDC( credOutputChan := make(chan clientauthenticationv1beta1.ExecCredential) spawnTestGoroutine(t, func() (err error) { defer func() { - closeErr := stderr.Close() + closeErr := stdout.Close() if closeErr == nil || errors.Is(closeErr, os.ErrClosed) { return }