Skip to content

Commit

Permalink
feat: increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Nov 26, 2024
1 parent 42c32d8 commit 8607d4a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions aggsender/epoch_notifier_per_block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ import (
"github.com/stretchr/testify/require"
)

func TestConfigEpochNotifierPerBlockString(t *testing.T) {
cfg := ConfigEpochNotifierPerBlock{
StartingEpochBlock: 123,
NumBlockPerEpoch: 456,
EpochNotificationPercentage: 789,
}
require.Equal(t, "{startEpochBlock=123, sizeEpoch=456, threshold=789%}", cfg.String())
var cfg2 *ConfigEpochNotifierPerBlock
require.Equal(t, "nil", cfg2.String())
}

func TestStartingBlockEpoch(t *testing.T) {
testData := newNotifierPerBlockTestData(t, &ConfigEpochNotifierPerBlock{
StartingEpochBlock: 9,
Expand Down

0 comments on commit 8607d4a

Please sign in to comment.