lndc: update tests due to interface change
This commit is contained in:
parent
d160a87b2a
commit
8ca9d6d22f
@ -30,7 +30,7 @@ func TestConnectionCorrectness(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create listener: %v", err)
|
t.Fatalf("unable to create listener: %v", err)
|
||||||
}
|
}
|
||||||
conn := NewConn(remotePriv, nil)
|
conn := NewConn(nil)
|
||||||
|
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
var dialErr error
|
var dialErr error
|
||||||
@ -39,7 +39,7 @@ func TestConnectionCorrectness(t *testing.T) {
|
|||||||
// main one. If both errors are nil, then encryption+auth was succesful.
|
// main one. If both errors are nil, then encryption+auth was succesful.
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
dialErr = conn.Dial(listener.Addr().String(),
|
dialErr = conn.Dial(remotePriv, listener.Addr().String(),
|
||||||
localPriv.PubKey().SerializeCompressed())
|
localPriv.PubKey().SerializeCompressed())
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user