refactor(orchestrator): narrow historical storage to reads (CL17)
This commit is contained in:
parent
03518c8ae4
commit
984dc1a9cc
17 changed files with 88 additions and 232 deletions
|
|
@ -218,7 +218,7 @@ describe('historical dataset preparation', () => {
|
|||
return { rows: rows('A.US', 5) };
|
||||
},
|
||||
} as unknown as QuestDBClient;
|
||||
const storage = new StorageService({ logger }, null, null, questdb);
|
||||
const storage = new StorageService(logger, null, questdb);
|
||||
expect(
|
||||
await storage.getHistoricalBars(
|
||||
'A.US',
|
||||
|
|
@ -247,7 +247,7 @@ describe('historical dataset preparation', () => {
|
|||
}));
|
||||
},
|
||||
} as unknown as MongoDBClient;
|
||||
const storage = new StorageService({ logger }, mongodb, null, null);
|
||||
const storage = new StorageService(logger, mongodb, null);
|
||||
const read = () =>
|
||||
storage.getHistoricalBars('A.US', new Date(config.startDate), new Date(config.endDate), '1d');
|
||||
expect(await read()).toHaveLength(5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue