htlcswitch: add new concurrentTester wrapper struct

In this commit we add a new wrapper struct for the testing.T struct
that allows multiple clients to attempt to fail a given test at the
same time.
This commit is contained in:
Olaoluwa Osuntokun committed 2017-11-11 15:05:15 -08:00
1 parent 861412529d
commit a702aace9c
3 files changed
+26 -4

No files matched your search

+1 -2
View File
@@ -608,7 +608,6 @@ func (n *threeHopNetwork) stop() {
}
}
// clusterChannels...
type clusterChannels struct {
aliceToBob *lnwallet.LightningChannel
bobToAlice *lnwallet.LightningChannel
@@ -685,7 +684,7 @@ func createClusterChannels(aliceToBob, bobToCarol btcutil.Amount) (
// alice first bob second bob carol
// channel link channel link channel link channel link
//
func newThreeHopNetwork(t *testing.T, aliceChannel, firstBobChannel,
func newThreeHopNetwork(t testing.TB, aliceChannel, firstBobChannel,
secondBobChannel, carolChannel *lnwallet.LightningChannel,
startingHeight uint32) *threeHopNetwork {