Skip to content

Commit

Permalink
Rename startUpdateFeedsLoops
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed Oct 27, 2023
1 parent 7cec9d1 commit e19a094
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/update-feeds/update-feeds.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<stateModule.State>({
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/update-feeds/update-feeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit e19a094

Please sign in to comment.