diff --git a/src/update-feeds/update-feeds.test.ts b/src/update-feeds/update-feeds.test.ts index c44f3512..36c049f0 100644 --- a/src/update-feeds/update-feeds.test.ts +++ b/src/update-feeds/update-feeds.test.ts @@ -5,9 +5,9 @@ import * as stateModule from '../state'; import * as utilsModule from '../utils'; import * as contractMockModule from './temporary-contract-mock'; -import { runUpdateFeed, startUpdateFeedsLoops } from './update-feeds'; +import { runUpdateFeed, startUpdateFeedLoops } from './update-feeds'; -describe(startUpdateFeedsLoops.name, () => { +describe(startUpdateFeedLoops.name, () => { it('starts staggered update loops for a chain', async () => { jest.spyOn(stateModule, 'getState').mockReturnValue( allowPartial({ @@ -30,7 +30,7 @@ describe(startUpdateFeedsLoops.name, () => { }) as any); jest.spyOn(logger, 'debug'); - await startUpdateFeedsLoops(); + await startUpdateFeedLoops(); // Expect the intervals to be called with the correct stagger time. expect(setInterval).toHaveBeenCalledTimes(2); @@ -80,7 +80,7 @@ describe(startUpdateFeedsLoops.name, () => { }) as any); jest.spyOn(logger, 'debug'); - await startUpdateFeedsLoops(); + await startUpdateFeedLoops(); // Expect the intervals to be called with the correct stagger time. expect(setInterval).toHaveBeenCalledTimes(2); diff --git a/src/update-feeds/update-feeds.ts b/src/update-feeds/update-feeds.ts index e23fbf4f..ae90a93a 100644 --- a/src/update-feeds/update-feeds.ts +++ b/src/update-feeds/update-feeds.ts @@ -8,7 +8,7 @@ import { isFulfilled, sleep } from '../utils'; import { type ActiveDapisBatch, getStaticActiveDapis } from './temporary-contract-mock'; -export const startUpdateFeedsLoops = async () => { +export const startUpdateFeedLoops = async () => { const state = getState(); const { config: { chains },