[#1527] engine/test: Allow to specify current epoch in epochState
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
parent
635a292ae4
commit
60feed3b5f
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue