Skip to content

Commit ada2fd4

Browse files
committed
fix tests
1 parent b78b4ae commit ada2fd4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

engine/execution/storehouse/background_indexer_factory_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ func TestLoadBackgroundIndexerEngine_StorehouseEnabled(t *testing.T) {
5050
triedir := t.TempDir()
5151
importCheckpointWorkerCount := 1
5252
var importFunc storehouse.ImportRegistersFromCheckpoint = nil
53-
var executionDataStore execution_data.ExecutionDataGetter = nil
53+
// Set up execution data store (required when indexing is enabled)
54+
bs := blobs.NewBlobstore(dssync.MutexWrap(datastore.NewMapDatastore()))
55+
executionDataStore := execution_data.NewExecutionDataStore(bs, execution_data.DefaultSerializer)
5456
resultsReader := storagemock.NewExecutionResults(t)
5557
blockExecutedNotifier := ingestion.NewBlockExecutedNotifier()
5658
followerDistributor := pubsub.NewFollowerDistributor()
@@ -75,8 +77,8 @@ func TestLoadBackgroundIndexerEngine_StorehouseEnabled(t *testing.T) {
7577
)
7678

7779
require.NoError(t, err)
78-
require.Nil(t, engine)
79-
require.False(t, created)
80+
require.NotNil(t, engine)
81+
require.True(t, created)
8082
}
8183

8284
// TestLoadBackgroundIndexerEngine_BackgroundIndexingDisabled tests that LoadBackgroundIndexerEngine returns nil when enableBackgroundStorehouseIndexing is false

0 commit comments

Comments
 (0)