From 2f5f7e668b84b1289a39e9c0a90454d586317fe3 Mon Sep 17 00:00:00 2001 From: Anton Korpusenko Date: Tue, 16 Jul 2024 19:27:27 +0300 Subject: [PATCH] fixed timer_test --- protocol/genesis/qbft/roundtimer/timer_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/protocol/genesis/qbft/roundtimer/timer_test.go b/protocol/genesis/qbft/roundtimer/timer_test.go index 3aa44d33c4..1dadf68c54 100644 --- a/protocol/genesis/qbft/roundtimer/timer_test.go +++ b/protocol/genesis/qbft/roundtimer/timer_test.go @@ -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" @@ -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() @@ -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()