mirror of
https://github.com/aler9/gortsplib
synced 2025-10-07 08:01:14 +08:00
speed up tests (#143)
This commit is contained in:
@@ -2677,7 +2677,6 @@ func TestClientReadDifferentSource(t *testing.T) {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
// server -> client (RTP)
|
// server -> client (RTP)
|
||||||
time.Sleep(1 * time.Second)
|
|
||||||
l1.WriteTo(testRTPPacketMarshaled, &net.UDPAddr{
|
l1.WriteTo(testRTPPacketMarshaled, &net.UDPAddr{
|
||||||
IP: net.ParseIP("127.0.0.1"),
|
IP: net.ParseIP("127.0.0.1"),
|
||||||
Port: th.ClientPorts[0],
|
Port: th.ClientPorts[0],
|
||||||
|
@@ -769,15 +769,11 @@ func TestServerPublish(t *testing.T) {
|
|||||||
|
|
||||||
// client -> server
|
// client -> server
|
||||||
if transport == "udp" {
|
if transport == "udp" {
|
||||||
time.Sleep(1 * time.Second)
|
|
||||||
|
|
||||||
l1.WriteTo(testRTPPacketMarshaled, &net.UDPAddr{
|
l1.WriteTo(testRTPPacketMarshaled, &net.UDPAddr{
|
||||||
IP: net.ParseIP("127.0.0.1"),
|
IP: net.ParseIP("127.0.0.1"),
|
||||||
Port: th.ServerPorts[0],
|
Port: th.ServerPorts[0],
|
||||||
})
|
})
|
||||||
|
|
||||||
time.Sleep(500 * time.Millisecond)
|
|
||||||
|
|
||||||
l2.WriteTo(testRTCPPacketMarshaled, &net.UDPAddr{
|
l2.WriteTo(testRTCPPacketMarshaled, &net.UDPAddr{
|
||||||
IP: net.ParseIP("127.0.0.1"),
|
IP: net.ParseIP("127.0.0.1"),
|
||||||
Port: th.ServerPorts[1],
|
Port: th.ServerPorts[1],
|
||||||
|
Reference in New Issue
Block a user