mirror of https://github.com/jackc/pgx.git
Fix flickering test on CI
Ensure the conn reads everything expected before closing.pull/1281/head v5.0.0-alpha.5
parent
b6f5cbd15e
commit
a5b4f888c2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue