Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
geoknee committed Sep 23, 2024
1 parent dbd86ca commit 24403b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions op-batcher/batcher/channel_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ type MockChannelManager struct {
*channelManager
}

func (m *MockChannelManager) Requeue(cfg ChannelConfig) error {
args := m.Called(cfg)
func (m *MockChannelManager) Requeue(newCfg ChannelConfig) error {
args := m.Called(newCfg)
return args.Error(0)
}

Expand Down Expand Up @@ -600,11 +600,11 @@ func TestChannelManager_TxData(t *testing.T) {
require.True(t, m.channelQueue[0].IsFull())

if tc.chooseBlobsWhenChannelCreated != tc.chooseBlobsWhenChannelSubmitted {
m.AssertCalled(t, "Requeue", cfg)
m.AssertCalled(t, "Requeue", mock.Anything)
} else {
m.AssertNotCalled(t, "Requeue", cfg)
m.AssertNotCalled(t, "Requeue", mock.Anything)
}
// TODO assert defaultCfg updated correctly
require.True(t, tc.chooseBlobsWhenChannelSubmitted, m.defaultCfg.UseBlobs)
})
}

Expand Down

0 comments on commit 24403b5

Please sign in to comment.