Skip to content

Commit 272467a

Browse files
fix tests
1 parent cd6b43e commit 272467a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

relayer/chainreader/loop/loop_reader_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,14 @@ func runLoopChainReaderEchoTest(t *testing.T, log logger.Logger, rpcUrl string)
200200
},
201201
},
202202
},
203+
EventsIndexer: config.EventsIndexerConfig{
204+
PollingInterval: 10 * time.Second,
205+
SyncTimeout: 30 * time.Second,
206+
},
207+
TransactionsIndexer: config.TransactionsIndexerConfig{
208+
PollingInterval: 10 * time.Second,
209+
SyncTimeout: 30 * time.Second,
210+
},
203211
}
204212

205213
echoBinding := types.BoundContract{
@@ -255,6 +263,10 @@ func runLoopChainReaderEchoTest(t *testing.T, log logger.Logger, rpcUrl string)
255263
err = loopReader.Bind(context.Background(), []types.BoundContract{echoBinding, counterBinding})
256264
require.NoError(t, err)
257265

266+
// Start the indexers
267+
err = indexerInstance.Start(ctx)
268+
require.NoError(t, err)
269+
258270
log.Debugw("LoopChainReader setup complete")
259271

260272
t.Run("LoopReader_GetLatestValue_EchoU64", func(t *testing.T) {

0 commit comments

Comments
 (0)