Commit 7bbe25dd authored by Andreas Bigger's avatar Andreas Bigger

fix golangci nits

parent e7f4ece7
...@@ -101,7 +101,8 @@ func TestChannelManagerNextTxData(t *testing.T) { ...@@ -101,7 +101,8 @@ func TestChannelManagerNextTxData(t *testing.T) {
// Set the pending channel // Set the pending channel
// The nextTxData function should still return EOF // The nextTxData function should still return EOF
// since the pending channel has no frames // since the pending channel has no frames
m.ensurePendingChannel(eth.BlockID{}) err = m.ensurePendingChannel(eth.BlockID{})
require.NoError(t, err)
returnedTxData, err = m.nextTxData() returnedTxData, err = m.nextTxData()
require.ErrorIs(t, err, io.EOF) require.ErrorIs(t, err, io.EOF)
require.Equal(t, txData{}, returnedTxData) require.Equal(t, txData{}, returnedTxData)
...@@ -161,7 +162,8 @@ func TestClearChannelManager(t *testing.T) { ...@@ -161,7 +162,8 @@ func TestClearChannelManager(t *testing.T) {
require.NoError(t, err) require.NoError(t, err)
// Make sure there is a channel builder // Make sure there is a channel builder
m.ensurePendingChannel(l1BlockID) err = m.ensurePendingChannel(l1BlockID)
require.NoError(t, err)
require.NotNil(t, m.pendingChannel) require.NotNil(t, m.pendingChannel)
require.Equal(t, 0, len(m.confirmedTransactions)) require.Equal(t, 0, len(m.confirmedTransactions))
...@@ -214,7 +216,8 @@ func TestChannelManagerTxConfirmed(t *testing.T) { ...@@ -214,7 +216,8 @@ func TestChannelManagerTxConfirmed(t *testing.T) {
// Let's add a valid pending transaction to the channel manager // Let's add a valid pending transaction to the channel manager
// So we can demonstrate that TxConfirmed's correctness // So we can demonstrate that TxConfirmed's correctness
m.ensurePendingChannel(eth.BlockID{}) err := m.ensurePendingChannel(eth.BlockID{})
require.NoError(t, err)
channelID := m.pendingChannel.ID() channelID := m.pendingChannel.ID()
frame := frameData{ frame := frameData{
data: []byte{}, data: []byte{},
...@@ -262,7 +265,8 @@ func TestChannelManagerTxFailed(t *testing.T) { ...@@ -262,7 +265,8 @@ func TestChannelManagerTxFailed(t *testing.T) {
// Let's add a valid pending transaction to the channel // Let's add a valid pending transaction to the channel
// manager so we can demonstrate correctness // manager so we can demonstrate correctness
m.ensurePendingChannel(eth.BlockID{}) err := m.ensurePendingChannel(eth.BlockID{})
require.NoError(t, err)
channelID := m.pendingChannel.ID() channelID := m.pendingChannel.ID()
frame := frameData{ frame := frameData{
data: []byte{}, data: []byte{},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment