Skip to content

Commit

Permalink
feat: increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Jan 30, 2025
1 parent 10364bc commit 14e41c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions aggsender/aggsender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func TestAggSenderSendCertificates(t *testing.T) {
require.NotNil(t, aggSender)

t.Run("regular case (1 cert send)", func(t *testing.T) {
aggSender.cfg.CheckStatusCertificateInterval = types.Duration{Duration: 0}
aggSender.cfg.CheckStatusCertificateInterval = types.Duration{Duration: time.Microsecond}
ch := make(chan aggsendertypes.EpochEvent, 2)
epochNotifierMock.EXPECT().Subscribe("aggsender").Return(ch).Once()
err = aggSender.storage.SaveLastSentCertificate(ctx, aggsendertypes.CertificateInfo{
Expand All @@ -343,9 +343,6 @@ func TestAggSenderSendCertificates(t *testing.T) {
Status: agglayer.Pending,
}, nil).Once()

ch <- aggsendertypes.EpochEvent{
Epoch: 1,
}
aggSender.sendCertificates(ctx, 1)
AggLayerMock.AssertExpectations(t)
epochNotifierMock.AssertExpectations(t)
Expand Down

0 comments on commit 14e41c9

Please sign in to comment.