itest: use require.NoError in TestLightningNetworkDaemon
This commit is contained in:
parent
c7eea13f95
commit
d6c2ee1bbf
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user