mirror of
https://github.com/aler9/gortsplib
synced 2025-10-21 14:19:36 +08:00
do not check for io.EOF in tests
This commit is contained in:
@@ -2,7 +2,6 @@ package gortsplib
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"io"
|
||||
"net"
|
||||
"strconv"
|
||||
"sync/atomic"
|
||||
@@ -100,11 +99,10 @@ func TestServerConnPublishSetupPath(t *testing.T) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
err = <-conn.Read(ServerConnReadHandlers{
|
||||
<-conn.Read(ServerConnReadHandlers{
|
||||
OnAnnounce: onAnnounce,
|
||||
OnSetup: onSetup,
|
||||
})
|
||||
require.Equal(t, io.EOF, err)
|
||||
}()
|
||||
|
||||
conn, err := net.Dial("tcp", "localhost:8554")
|
||||
@@ -466,13 +464,12 @@ func TestServerConnPublishReceivePackets(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
err = <-conn.Read(ServerConnReadHandlers{
|
||||
<-conn.Read(ServerConnReadHandlers{
|
||||
OnAnnounce: onAnnounce,
|
||||
OnSetup: onSetup,
|
||||
OnRecord: onRecord,
|
||||
OnFrame: onFrame,
|
||||
})
|
||||
require.Equal(t, io.EOF, err)
|
||||
}()
|
||||
|
||||
conn, err := net.Dial("tcp", "localhost:8554")
|
||||
|
Reference in New Issue
Block a user