Commit afcd6119 authored by Jeromy's avatar Jeromy

add peer info after FindPeer RPC

fix ping test
parent f2669289
......@@ -116,12 +116,12 @@ func TestPing(t *testing.T) {
//Test that we can ping the node
ctxT, _ := context.WithTimeout(ctx, 100*time.Millisecond)
if err := dhtA.Ping(ctxT, peerB); err != nil {
if _, err := dhtA.Ping(ctxT, peerB); err != nil {
t.Fatal(err)
}
ctxT, _ = context.WithTimeout(ctx, 100*time.Millisecond)
if err := dhtB.Ping(ctxT, peerA); err != nil {
if _, err := dhtB.Ping(ctxT, peerA); err != nil {
t.Fatal(err)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment