mirror of
https://github.com/libp2p/go-openssl.git
synced 2026-08-18 14:43:28 +08:00
sync: update CI config files (#34)
This commit is contained in:
@@ -19,7 +19,6 @@ import (
|
||||
"crypto/rand"
|
||||
"crypto/tls"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"sync"
|
||||
"testing"
|
||||
@@ -283,7 +282,7 @@ func ClosingTest(t *testing.T, constructor func(
|
||||
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
data, err := ioutil.ReadAll(sslconn2)
|
||||
data, err := io.ReadAll(sslconn2)
|
||||
if !bytes.Equal(data, []byte("hello")) {
|
||||
t.Error("bytes don't match")
|
||||
}
|
||||
@@ -589,7 +588,7 @@ func LotsOfConns(t *testing.T, payload_size int64, loops, clients int,
|
||||
}
|
||||
}()
|
||||
for i := 0; i < loops; i++ {
|
||||
_, err := io.Copy(ioutil.Discard,
|
||||
_, err := io.Copy(io.Discard,
|
||||
io.LimitReader(conn, payload_size))
|
||||
if err != nil {
|
||||
t.Errorf("failed reading: %s", err)
|
||||
@@ -635,7 +634,7 @@ func LotsOfConns(t *testing.T, payload_size int64, loops, clients int,
|
||||
t.Errorf("failed writing: %s", err)
|
||||
return
|
||||
}
|
||||
_, err = io.Copy(ioutil.Discard,
|
||||
_, err = io.Copy(io.Discard,
|
||||
io.LimitReader(ssl_client, payload_size))
|
||||
if err != nil {
|
||||
t.Errorf("failed reading: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user