mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-27 09:05:18 +00:00
16 lines
259 B
Go
16 lines
259 B
Go
|
package dht_pb
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestBadAddrsDontReturnNil(t *testing.T) {
|
||
|
mp := new(Message_Peer)
|
||
|
mp.Addrs = [][]byte{[]byte("NOT A VALID MULTIADDR")}
|
||
|
|
||
|
addrs := mp.Addresses()
|
||
|
if len(addrs) > 0 {
|
||
|
t.Fatal("shouldnt have any multiaddrs")
|
||
|
}
|
||
|
}
|