Fix lint errors
This commit is contained in:
@@ -72,14 +72,14 @@ func TestIntegrationRecvAbortsOnClose(t *testing.T) {
|
||||
func TestIntegrationConcurrentOpen(t *testing.T) {
|
||||
errCh := make(chan error, 2)
|
||||
handles := make(chan *Handle, 2)
|
||||
for i := 0; i < 2; i++ {
|
||||
for range 2 {
|
||||
go func() {
|
||||
h, err := Open(nil, LayerNetwork, 0, FlagSendOnly)
|
||||
handles <- h
|
||||
errCh <- err
|
||||
}()
|
||||
}
|
||||
for i := 0; i < 2; i++ {
|
||||
for range 2 {
|
||||
err := <-errCh
|
||||
h := <-handles
|
||||
require.NoError(t, err)
|
||||
|
||||
@@ -48,7 +48,7 @@ type Address struct {
|
||||
Timestamp int64
|
||||
bits uint32
|
||||
Reserved2 uint32
|
||||
union [64]byte
|
||||
_ [64]byte
|
||||
}
|
||||
|
||||
var _ [80]byte = [unsafe.Sizeof(Address{})]byte{}
|
||||
|
||||
Reference in New Issue
Block a user