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

View File

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