Skip to content

Commit b5a40c1

Browse files
committed
update mocks
1 parent bf2a91a commit b5a40c1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ generate-mocks: install-mock-generators
199199
mockery --name '.*' --dir="./consensus/hotstuff" --case=underscore --output="./consensus/hotstuff/mocks" --outpkg="mocks"
200200
mockery --name '.*' --dir="./engine/access/wrapper" --case=underscore --output="./engine/access/mock" --outpkg="mock"
201201
mockery --name 'API' --dir="./access" --case=underscore --output="./access/mock" --outpkg="mock"
202-
mockery --name 'Blocks' --dir="./access" --case=underscore --output="./access/mock" --outpkg="mock"
202+
mockery --name 'Blocks' --dir="./access/validator" --case=underscore --output="./access/validator/mock" --outpkg="mock"
203203
mockery --name 'API' --dir="./engine/protocol" --case=underscore --output="./engine/protocol/mock" --outpkg="mock"
204204
mockery --name '.*' --dir="./engine/access/state_stream" --case=underscore --output="./engine/access/state_stream/mock" --outpkg="mock"
205205
mockery --name 'BlockTracker' --dir="./engine/access/subscription" --case=underscore --output="./engine/access/subscription/mock" --outpkg="mock"
File renamed without changes.

access/validator/validator_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313

1414
jsoncdc "github.com/onflow/cadence/encoding/json"
1515

16-
accessmock "github.com/onflow/flow-go/access/mock"
1716
"github.com/onflow/flow-go/access/validator"
17+
validatormock "github.com/onflow/flow-go/access/validator/mock"
1818
"github.com/onflow/flow-go/fvm"
1919
"github.com/onflow/flow-go/model/flow"
2020
"github.com/onflow/flow-go/module"
@@ -29,7 +29,7 @@ func TestTransactionValidatorSuite(t *testing.T) {
2929

3030
type TransactionValidatorSuite struct {
3131
suite.Suite
32-
blocks *accessmock.Blocks
32+
blocks *validatormock.Blocks
3333
header *flow.Header
3434
chain flow.Chain
3535
validatorOptions validator.TransactionValidationOptions
@@ -38,7 +38,7 @@ type TransactionValidatorSuite struct {
3838

3939
func (s *TransactionValidatorSuite) SetupTest() {
4040
s.metrics = metrics.NewNoopCollector()
41-
s.blocks = accessmock.NewBlocks(s.T())
41+
s.blocks = validatormock.NewBlocks(s.T())
4242
assert.NotNil(s.T(), s.blocks)
4343

4444
s.header = unittest.BlockHeaderFixture()

0 commit comments

Comments
 (0)