itest: use require.NoError in TestLightningNetworkDaemon

This commit is contained in:
Andras Banki-Horvath 2020-10-29 15:35:02 +01:00
parent c7eea13f95
commit d6c2ee1bbf
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8

@ -14278,16 +14278,13 @@ func TestLightningNetworkDaemon(t *testing.T) {
err := lndHarness.EnsureConnected( err := lndHarness.EnsureConnected(
context.Background(), lndHarness.Alice, lndHarness.Bob, context.Background(), lndHarness.Alice, lndHarness.Bob,
) )
if err != nil { require.NoError(t, err, "unable to connect alice to bob")
t.Fatalf("unable to connect alice to bob: %v", err)
}
if err := lndHarness.Alice.AddToLog(logLine); err != nil { err = lndHarness.Alice.AddToLog(logLine)
t.Fatalf("unable to add to log: %v", err) require.NoError(t, err, "unable to add to Alice's log")
}
if err := lndHarness.Bob.AddToLog(logLine); err != nil { err = lndHarness.Bob.AddToLog(logLine)
t.Fatalf("unable to add to log: %v", err) require.NoError(t, err, "unable to add to Bob's log")
}
// Start every test with the default static fee estimate. // Start every test with the default static fee estimate.
lndHarness.SetFeeEstimate(12500) lndHarness.SetFeeEstimate(12500)