config+pathfind_test+notifications_test: format and fix newVertex import

Run go fmt so config file is formatted correctly. Also rename
newVertex to NewVertex in pathfind_test and notifications_test
as it is now exported from the routing package.
This commit is contained in:
Laura Cressman
2017-11-03 17:42:02 -04:00
committed by Olaoluwa Osuntokun
parent 918ef2808f
commit 7408aa6c8d
3 changed files with 7 additions and 8 deletions

View File

@@ -450,8 +450,8 @@ func TestEdgeUpdateNotification(t *testing.T) {
// Create lookup map for notifications we are intending to receive. Entries
// are removed from the map when the anticipated notification is received.
var waitingFor = map[Vertex]int{
newVertex(node1.PubKey): 1,
newVertex(node2.PubKey): 2,
NewVertex(node1.PubKey): 1,
NewVertex(node2.PubKey): 2,
}
const numEdgePolicies = 2
@@ -466,7 +466,7 @@ func TestEdgeUpdateNotification(t *testing.T) {
}
edgeUpdate := ntfn.ChannelEdgeUpdates[0]
nodeVertex := newVertex(edgeUpdate.AdvertisingNode)
nodeVertex := NewVertex(edgeUpdate.AdvertisingNode)
if idx, ok := waitingFor[nodeVertex]; ok {
switch idx {
@@ -609,8 +609,8 @@ func TestNodeUpdateNotification(t *testing.T) {
// Create lookup map for notifications we are intending to receive. Entries
// are removed from the map when the anticipated notification is received.
var waitingFor = map[Vertex]int{
newVertex(node1.PubKey): 1,
newVertex(node2.PubKey): 2,
NewVertex(node1.PubKey): 1,
NewVertex(node2.PubKey): 2,
}
// Exactly two notifications should be sent, each corresponding to the
@@ -627,7 +627,7 @@ func TestNodeUpdateNotification(t *testing.T) {
}
nodeUpdate := ntfn.NodeUpdates[0]
nodeVertex := newVertex(nodeUpdate.IdentityKey)
nodeVertex := NewVertex(nodeUpdate.IdentityKey)
if idx, ok := waitingFor[nodeVertex]; ok {
switch idx {
case 1: