mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-13 20:41:25 -04:00
log the actual bytes in the test for now, make sure they're really there
This commit is contained in:
@ -139,7 +139,7 @@ func (router_info RouterInfo) Bytes() (bytes []byte, err error) {
|
||||
|
||||
func (router_info RouterInfo) String() string {
|
||||
log.Debug("Converting RouterInfo to string")
|
||||
str := "Certificate: " + string(router_info.router_identity.KeysAndCert.Bytes())
|
||||
str := "Certificate: " + string(router_info.router_identity.Bytes())
|
||||
str += "Published: " + string(router_info.published.Bytes())
|
||||
str += "Addresses:" + string(router_info.size.Bytes())
|
||||
for index, router_address := range router_info.addresses {
|
||||
|
@ -98,7 +98,7 @@ func TestCreateRouterInfo(t *testing.T) {
|
||||
|
||||
t.Run("Serialize and Deserialize RouterInfo", func(t *testing.T) {
|
||||
routerInfoBytes, err := routerInfo.Bytes()
|
||||
t.Log(routerInfoBytes)
|
||||
t.Log(routerInfo.String(), routerInfoBytes)
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to write RouterInfo to bytes: %v\n", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user