From a5b4f888c221566c3034bda659afa460701a256e Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 16 Jul 2022 18:16:19 -0500 Subject: [PATCH] Fix flickering test on CI Ensure the conn reads everything expected before closing. --- internal/nbconn/nbconn_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nbconn/nbconn_test.go b/internal/nbconn/nbconn_test.go index c4a8e65b..8b672e4e 100644 --- a/internal/nbconn/nbconn_test.go +++ b/internal/nbconn/nbconn_test.go @@ -294,7 +294,7 @@ func TestInternalNonBlockingWrite(t *testing.T) { }() readBuf := make([]byte, deadlockSize) - _, err = conn.Read(readBuf) + _, err = io.ReadFull(conn, readBuf) require.NoError(t, err) err = conn.Close()