@@ -298,7 +298,7 @@ func testFundingTimeout(t *testing.T, faultyPeer, n int) {
298298 for i , funder := range funders {
299299 sleepTime := time .Millisecond * time .Duration (rng .Int63n (10 )+ 1 )
300300 i , funder := i , funder
301- go ct .StageN ("funding loop" , n , func (rt pkgtest.ConcT ) {
301+ go ct .StageN ("funding loop" , n , func (t pkgtest.ConcT ) {
302302 // Faulty peer does not fund the channel.
303303 if i == faultyPeer {
304304 return
@@ -307,13 +307,13 @@ func testFundingTimeout(t *testing.T, faultyPeer, n int) {
307307 req := channel .NewFundingReq (params , & channel.State {Allocation : * alloc }, channel .Index (i ), alloc .Balances )
308308 err := funder .Fund (ctx , * req )
309309 require .Error (t , err )
310- require .True (rt , channel .IsFundingTimeoutError (err ), "funder should return FundingTimeoutError" )
310+ require .True (t , channel .IsFundingTimeoutError (err ), "funder should return FundingTimeoutError" )
311311 pErr := errors .Cause (err ).(channel.FundingTimeoutError ) // unwrap error
312312 // Check that `faultyPeer` is reported as faulty.
313313 require .Len (t , pErr .Errors , len (alloc .Assets ))
314314 for _ , e := range pErr .Errors {
315315 require .Len (t , e .TimedOutPeers , 1 )
316- assert .Equal (t , channel .Index (faultyPeer ), e .TimedOutPeers [0 ], "Peer should be detected as erroneous" )
316+ require .Equal (t , channel .Index (faultyPeer ), e .TimedOutPeers [0 ], "Peer should be detected as erroneous" )
317317 }
318318 outer:
319319 for a := 0 ; a < len (alloc .Assets ); a ++ {
0 commit comments