@@ -13,7 +13,7 @@ import (
1313
1414func TestJitterBuffer (t * testing.T ) {
1515 assert := assert .New (t )
16- t .Run ("Appends packets in order" , func (t * testing.T ) {
16+ t .Run ("Appends packets in order" , func (* testing.T ) {
1717 jb := New ()
1818 assert .Equal (jb .lastSequence , uint16 (0 ))
1919 jb .Push (& rtp.Packet {Header : rtp.Header {SequenceNumber : 5000 , Timestamp : 500 }, Payload : []byte {0x02 }})
@@ -30,7 +30,7 @@ func TestJitterBuffer(t *testing.T) {
3030 assert .Equal (jb .lastSequence , uint16 (5012 ))
3131 })
3232
33- t .Run ("Appends packets and begins playout" , func (t * testing.T ) {
33+ t .Run ("Appends packets and begins playout" , func (* testing.T ) {
3434 jb := New ()
3535 for i := 0 ; i < 100 ; i ++ {
3636 jb .Push (& rtp.Packet {Header : rtp.Header {SequenceNumber : uint16 (5012 + i ), Timestamp : uint32 (512 + i )}, Payload : []byte {0x02 }})
@@ -42,7 +42,7 @@ func TestJitterBuffer(t *testing.T) {
4242 assert .Equal (head .SequenceNumber , uint16 (5012 ))
4343 assert .Equal (err , nil )
4444 })
45- t .Run ("Wraps playout correctly" , func (t * testing.T ) {
45+ t .Run ("Wraps playout correctly" , func (* testing.T ) {
4646 jb := New ()
4747 for i := 0 ; i < 100 ; i ++ {
4848 sqnum := uint16 ((math .MaxUint16 - 32 + i ) % math .MaxUint16 )
@@ -64,7 +64,7 @@ func TestJitterBuffer(t *testing.T) {
6464 }
6565 }
6666 })
67- t .Run ("Pops at timestamp correctly" , func (t * testing.T ) {
67+ t .Run ("Pops at timestamp correctly" , func (* testing.T ) {
6868 jb := New ()
6969 for i := 0 ; i < 100 ; i ++ {
7070 sqnum := uint16 ((math .MaxUint16 - 32 + i ) % math .MaxUint16 )
@@ -83,7 +83,7 @@ func TestJitterBuffer(t *testing.T) {
8383 assert .Equal (head .SequenceNumber , uint16 (math .MaxUint16 - 32 ))
8484 assert .Equal (err , nil )
8585 })
86- t .Run ("Can peek at a packet" , func (t * testing.T ) {
86+ t .Run ("Can peek at a packet" , func (* testing.T ) {
8787 jb := New ()
8888 jb .Push (& rtp.Packet {Header : rtp.Header {SequenceNumber : 5000 , Timestamp : 500 }, Payload : []byte {0x02 }})
8989 jb .Push (& rtp.Packet {Header : rtp.Header {SequenceNumber : 5001 , Timestamp : 501 }, Payload : []byte {0x02 }})
@@ -99,7 +99,7 @@ func TestJitterBuffer(t *testing.T) {
9999 assert .Equal (pkt .SequenceNumber , uint16 (5000 ))
100100 assert .Equal (err , nil )
101101 })
102- t .Run ("Pops at timestamp with multiple packets" , func (t * testing.T ) {
102+ t .Run ("Pops at timestamp with multiple packets" , func (* testing.T ) {
103103 jb := New ()
104104 for i := 0 ; i < 50 ; i ++ {
105105 sqnum := uint16 ((math .MaxUint16 - 32 + i ) % math .MaxUint16 )
0 commit comments