Skip to content

Commit

Permalink
fixed timer_test
Browse files Browse the repository at this point in the history
  • Loading branch information
AKorpusenko committed Jul 16, 2024
1 parent 5695ff9 commit 2f5f7e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions protocol/genesis/qbft/roundtimer/timer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"testing"
"time"

"github.com/AKorpusenko/genesis-go-eth2-client/spec/phase0"
"github.com/golang/mock/gomock"
genesisspecqbft "github.com/ssvlabs/ssv-spec-pre-cc/qbft"
genesisspectypes "github.com/ssvlabs/ssv-spec-pre-cc/types"
Expand Down Expand Up @@ -57,7 +56,7 @@ func setupMockBeaconNetwork(t *testing.T) *mocks.MockBeaconNetwork {

mockBeaconNetwork.EXPECT().SlotDurationSec().Return(120 * time.Millisecond).AnyTimes()
mockBeaconNetwork.EXPECT().GetSlotStartTime(gomock.Any()).DoAndReturn(
func(slot phase0.Slot) time.Time {
func(slot interface{}) time.Time {
return time.Now()
},
).AnyTimes()
Expand Down Expand Up @@ -127,7 +126,7 @@ func testTimeoutForRoundMulti(t *testing.T, role genesisspectypes.BeaconRole, th
timeNow := time.Now()
mockBeaconNetwork.EXPECT().SlotDurationSec().Return(100 * time.Millisecond).AnyTimes()
mockBeaconNetwork.EXPECT().GetSlotStartTime(gomock.Any()).DoAndReturn(
func(slot phase0.Slot) time.Time {
func(slot interface{}) time.Time {
return timeNow
},
).AnyTimes()
Expand Down

0 comments on commit 2f5f7e6

Please sign in to comment.