From 4f53299e9a29101822d2691a6bbd9e89c4285036 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Sun, 16 Jan 2022 17:54:55 -0600 Subject: [PATCH] clean up [need storage node] --- pkg/snapshot/service_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkg/snapshot/service_test.go b/pkg/snapshot/service_test.go index 77df695..8fbac83 100644 --- a/pkg/snapshot/service_test.go +++ b/pkg/snapshot/service_test.go @@ -10,7 +10,6 @@ import ( ethNode "github.com/ethereum/go-ethereum/statediff/indexer/node" "github.com/ethereum/go-ethereum/statediff/indexer/postgres" - // "github.com/ethereum/go-ethereum/ethdb" fixt "github.com/vulcanize/eth-pg-ipfs-state-snapshot/fixture" "github.com/vulcanize/eth-pg-ipfs-state-snapshot/pkg/snapshot/mock" @@ -72,17 +71,13 @@ func TestCreateSnapshot(t *testing.T) { pub := mock.NewMockPublisher(t) pub.EXPECT().PublishHeader(gomock.Eq(fixt.PublishHeader)) pub.EXPECT().BeginTx(). - // AnyTimes() Times(workers) pub.EXPECT().PrepareTxForBatch(gomock.Any(), gomock.Any()). - // AnyTimes() Times(workers) - // pub.EXPECT().PublishStorageNode(gomock.Eq(fixt.StorageNode), gomock.Eq(int64(0)), gomock.Any()) - // pub.EXPECT().PublishStateNode(statenode, gomock.Eq(int64(1)), gomock.Any()) - pub.EXPECT().PublishStateNode(gomock.Any(), mock.AnyOf(int64(0), int64(1)), gomock.Any()). Times(workers) - + // TODO: fixtures for storage node + // pub.EXPECT().PublishStorageNode(gomock.Eq(fixt.StorageNode), gomock.Eq(int64(0)), gomock.Any()) pub.EXPECT().CommitTx(gomock.Any()). Times(workers)