lbryio / reflector.go

MIT License
14 stars 13 forks source link

Peer proto tests #61

Closed shyba closed 1 year ago

shyba commented 1 year ago

peer protocol tests were checking only for an unused function, so I added more tests checking from dialing over a real connection. The second test checks that sending invalid data immediately causes the connection to close. For that to be possible I added a check for { as the first byte (this is always the case)