lndc: update tests due to interface change

This commit is contained in:
Olaoluwa Osuntokun 2016-03-22 13:00:18 -07:00
parent d160a87b2a
commit 8ca9d6d22f

@ -30,7 +30,7 @@ func TestConnectionCorrectness(t *testing.T) {
if err != nil {
t.Fatalf("unable to create listener: %v", err)
}
conn := NewConn(remotePriv, nil)
conn := NewConn(nil)
var wg sync.WaitGroup
var dialErr error
@ -39,7 +39,7 @@ func TestConnectionCorrectness(t *testing.T) {
// main one. If both errors are nil, then encryption+auth was succesful.
wg.Add(1)
go func() {
dialErr = conn.Dial(listener.Addr().String(),
dialErr = conn.Dial(remotePriv, listener.Addr().String(),
localPriv.PubKey().SerializeCompressed())
wg.Done()
}()