channeldb: use string comparison instead of deepequal to avoid array length mismatches
This commit is contained in:
parent
d8f453d9dc
commit
36219427ad
@ -3,7 +3,6 @@ package channeldb
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"net"
|
"net"
|
||||||
"reflect"
|
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -67,8 +66,7 @@ func TestLinkNodeEncodeDecode(t *testing.T) {
|
|||||||
t.Fatalf("last seen timestamps don't match: expected %v got %v",
|
t.Fatalf("last seen timestamps don't match: expected %v got %v",
|
||||||
originalNodes[i].LastSeen.Unix(), node.LastSeen.Unix())
|
originalNodes[i].LastSeen.Unix(), node.LastSeen.Unix())
|
||||||
}
|
}
|
||||||
if !reflect.DeepEqual(originalNodes[i].Addresses,
|
if originalNodes[i].Addresses[0].String() != node.Addresses[0].String() {
|
||||||
node.Addresses) {
|
|
||||||
t.Fatalf("addresses don't match: expected %v, got %v",
|
t.Fatalf("addresses don't match: expected %v, got %v",
|
||||||
originalNodes[i].Addresses, node.Addresses)
|
originalNodes[i].Addresses, node.Addresses)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user