From 07f8dab560739c4bf21b73fd0b8db2f29cb421ba Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sun, 29 Jan 2017 15:38:04 -0800 Subject: [PATCH] cmd/lncli: rename --draw to --render for describegraph --- cmd/lncli/commands.go | 4 ++-- lnd_test.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 44d87a40..712ee0e6 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -803,7 +803,7 @@ var DescribeGraphCommand = cli.Command{ Usage: "describegraph", Flags: []cli.Flag{ cli.BoolFlag{ - Name: "draw", + Name: "render", Usage: "If true, then an image of graph will be generated and displayed. The generated image is stored within the current directory with a file name of 'graph.svg'", }, }, @@ -823,7 +823,7 @@ func describeGraph(ctx *cli.Context) error { // If the draw flag is on, then we'll use the 'dot' command to create a // visualization of the graph itself. - if ctx.Bool("draw") { + if ctx.Bool("render") { return drawChannelGraph(graph) } diff --git a/lnd_test.go b/lnd_test.go index ba5f3895..3d11e71b 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -795,7 +795,7 @@ func testMultiHopPayments(net *networkHarness, t *harnessTest) { // Carol's routing table should show a path from Carol -> Alice -> Bob, // with the two channels above recognized as the only links within the // network. - time.Sleep(time.Second) + time.Sleep(time.Second * 2) req := &lnrpc.ChannelGraphRequest{} chanGraph, err := carol.DescribeGraph(ctxb, req) if err != nil { @@ -1508,6 +1508,7 @@ func testHtlcErrorPropagation(net *networkHarness, t *harnessTest) { Dest: carol.PubKey[:], Amt: payAmt, } + time.Sleep(time.Millisecond * 500) if err := alicePayStream.Send(sendReq); err != nil { t.Fatalf("unable to send payment: %v", err) }