From 20b1c41bf52985568026f51a1ef62a3bca442992 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Thu, 13 May 2021 16:02:24 -0700 Subject: [PATCH] Experiment to see if we can ignore `read /dev/ptmx: input/output error` This error seems to always happen on linux, but never on MacOS. --- test/integration/e2e_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/e2e_test.go b/test/integration/e2e_test.go index 4794e39b..d2fc5e46 100644 --- a/test/integration/e2e_test.go +++ b/test/integration/e2e_test.go @@ -348,8 +348,9 @@ func TestE2EFullIntegration(t *testing.T) { require.NoError(t, err) // Read all of the remaining output from the subprocess until EOF. - remainingOutput, err := ioutil.ReadAll(ptyFile) - require.NoError(t, err) + remainingOutput, _ := ioutil.ReadAll(ptyFile) + // Ignore any errors returned because there is always an error on linux. + require.Greaterf(t, len(remainingOutput), 0, "expected to get some more output from the kubectl subcommand, but did not") require.Greaterf(t, len(strings.Split(string(remainingOutput), "\n")), 2, "expected some namespaces to be returned, got %q", string(remainingOutput)) t.Logf("first kubectl command took %s", time.Since(start).String())