[#1527] engine/test: Allow to specify current epoch in epochState

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
Aleksey Savchuk 2024-12-02 15:37:25 +03:00
parent 635a292ae4
commit 60feed3b5f
Signed by: a-savchuk
GPG key ID: 70C0A7FF6F9C4639

View file

@ -17,10 +17,12 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
type epochState struct{} type epochState struct {
currEpoch uint64
}
func (s epochState) CurrentEpoch() uint64 { func (s epochState) CurrentEpoch() uint64 {
return 0 return s.currEpoch
} }
type testEngineWrapper struct { type testEngineWrapper struct {