mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-21 14:10:35 +02:00
multi: comprehensive typo fixes across all packages
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
72a5bc8648
commit
a93736d21e
@@ -15,7 +15,7 @@ func TestLinkNodeEncodeDecode(t *testing.T) {
|
||||
|
||||
cdb, cleanUp, err := makeTestDB()
|
||||
if err != nil {
|
||||
t.Fatalf("uanble to make test database: %v", err)
|
||||
t.Fatalf("unable to make test database: %v", err)
|
||||
}
|
||||
defer cleanUp()
|
||||
|
||||
@@ -72,7 +72,7 @@ func TestLinkNodeEncodeDecode(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Next, we'll excercise the methods to append additionall IP
|
||||
// Next, we'll exercise the methods to append additional IP
|
||||
// addresses, and also to update the last seen time.
|
||||
if err := node1.UpdateLastSeen(time.Now()); err != nil {
|
||||
t.Fatalf("unable to update last seen: %v", err)
|
||||
@@ -81,7 +81,7 @@ func TestLinkNodeEncodeDecode(t *testing.T) {
|
||||
t.Fatalf("unable to update addr: %v", err)
|
||||
}
|
||||
|
||||
// Fetch the same node from the databse according to its public key.
|
||||
// Fetch the same node from the database according to its public key.
|
||||
node1DB, err := cdb.FetchLinkNode(pub1)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to find node: %v", err)
|
||||
@@ -94,7 +94,7 @@ func TestLinkNodeEncodeDecode(t *testing.T) {
|
||||
node1.LastSeen.Unix(), node1DB.LastSeen.Unix())
|
||||
}
|
||||
if len(node1DB.Addresses) != 2 {
|
||||
t.Fatalf("wrong length for node1 addrsses: expected %v, got %v",
|
||||
t.Fatalf("wrong length for node1 addresses: expected %v, got %v",
|
||||
2, len(node1DB.Addresses))
|
||||
}
|
||||
if node1DB.Addresses[0].String() != addr1.String() {
|
||||
|
Reference in New Issue
Block a user