lnd.xprv/lntest/itest/assertions.go

17 lines
354 B
Go
Raw Normal View History

2020-11-21 14:52:02 +03:00
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")
}