mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 03:25:52 +08:00
When the TCP transport protocol is in use, BytesSent and BytesReceived were increased twice.
This commit is contained in:
@@ -544,6 +544,11 @@ func TestClientPlay(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
<-packetRecv
|
||||
|
||||
require.Greater(t, atomic.LoadUint64(c.BytesSent), uint64(620))
|
||||
require.Less(t, atomic.LoadUint64(c.BytesSent), uint64(850))
|
||||
require.Greater(t, atomic.LoadUint64(c.BytesReceived), uint64(580))
|
||||
require.Less(t, atomic.LoadUint64(c.BytesReceived), uint64(650))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user