mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-20 02:27:21 +01:00
17 lines
354 B
Go
17 lines
354 B
Go
package itest
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/lightningnetwork/lnd/lntest"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
// AddToNodeLog adds a line to the log file and asserts there's no error.
|
|
func AddToNodeLog(t *testing.T,
|
|
node *lntest.HarnessNode, logLine string) {
|
|
|
|
err := node.AddToLog(logLine)
|
|
require.NoError(t, err, "unable to add to log")
|
|
}
|