streaming

Media streaming and broadcast systems in Go
Log | Files | Refs | README | LICENSE

commit b4fa198b81781fa6ca022e1777da1278858f0487
parent 98958a8b50e9398fe443c5fc1af6564227b4bfb8
Author: Oliver Lowe <o@olowe.co>
Date:   Thu,  8 Aug 2024 17:44:53 +1000

pcap: name testing data directory the usual name

While here name pcap file based on its actual contents.

Diffstat:
Mpcap/pcap_test.go | 6+++---
Rpcap/testing/srt_capture_test.pcap -> pcap/testdata/text_udp.pcap | 0
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pcap/pcap_test.go b/pcap/pcap_test.go @@ -8,7 +8,7 @@ import ( ) func TestDecode(t *testing.T) { - f, err := os.Open("testing/srt_capture_test.pcap") + f, err := os.Open("testdata/text_udp.pcap") if err != nil { t.Fatal(err) } @@ -20,7 +20,7 @@ func TestDecode(t *testing.T) { SnapLen: 524288, } header := Header{ - // from tcpdump -tt -r testing/srt_capture_test.pcap + // from tcpdump -tt -r testdata/text_udp.pcap Time: time.UnixMicro(1721314372204926), OrigLen: 45, } @@ -42,7 +42,7 @@ func TestDecode(t *testing.T) { } func TestEncode(t *testing.T) { - want, err := os.ReadFile("testing/srt_capture_test.pcap") + want, err := os.ReadFile("testdata/text_udp.pcap") if err != nil { t.Fatal(err) } diff --git a/pcap/testing/srt_capture_test.pcap b/pcap/testdata/text_udp.pcap Binary files differ.