From f6c02aec20d4b727b8743281d8b1a0906be0faeb Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Thu, 3 Jan 2019 20:33:33 -0500 Subject: [PATCH] channeldb/channel_test: use random outpoint when creating new test channels In this commit, we use random outpoints when creating new test channels to ensure we can uniquely identify them. --- channeldb/channel_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channeldb/channel_test.go b/channeldb/channel_test.go index 97ab7d5bf..7cbde7f23 100644 --- a/channeldb/channel_test.go +++ b/channeldb/channel_test.go @@ -205,7 +205,7 @@ func createTestChannelState(cdb *DB) (*OpenChannel, error) { return &OpenChannel{ ChanType: SingleFunder, ChainHash: key, - FundingOutpoint: *testOutpoint, + FundingOutpoint: wire.OutPoint{Hash: key, Index: rand.Uint32()}, ShortChannelID: chanID, IsInitiator: true, IsPending: true,