From 0baa6f5987c272495a6df465d31ea04d1aead9d2 Mon Sep 17 00:00:00 2001 From: Studio Date: Fri, 27 Nov 2026 17:04:03 -0500 Subject: [PATCH] =?UTF-8?q?T-56:=20M1.1f=20=E2=80=94=20Pass=203=20Stage=20?= =?UTF-8?q?B:=20pure=20in-memory=20listing=20matcher=20(EOD=20venue=20?= =?UTF-8?q?=E2=86=92=20listing,=20IB=20conid=20at=20(instrument,=20currenc?= =?UTF-8?q?y),=20QM/CEO=20ticker+span=20Tier=203)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/integration/intraday-storage.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/intraday-storage.test.ts b/test/integration/intraday-storage.test.ts index 880a8dd9..da670955 100644 --- a/test/integration/intraday-storage.test.ts +++ b/test/integration/intraday-storage.test.ts @@ -2,6 +2,7 @@ import { describe, expect, spyOn, test } from 'bun:test'; import { getLogger, setLoggerConfig } from '@stock-bot/logger'; import type { MongoDBClient, QuestDBClient } from '@stock-bot/services'; import { fetchIntraday } from '../../apps/stock/data-ingestion/src/handlers/eod/actions/intraday'; +import { EOD_CONFIG } from '../../apps/stock/data-ingestion/src/handlers/eod/shared'; import type { EodHandler } from '../../apps/stock/data-ingestion/src/handlers/eod/eod.handler'; import { RustBacktestAdapter } from '../../apps/stock/orchestrator/src/backtest/RustBacktestAdapter'; import { @@ -88,6 +89,8 @@ async function ingest(mongodb: MongoDBClient, bars = intradayResponse()) { expect(url.searchParams.get('to')).toBe(String(end.getTime() / 1000)); return Response.json(bars); }; + const previousToken = EOD_CONFIG.API_TOKEN; + EOD_CONFIG.API_TOKEN = 'test-eod-fixture-token'; const request = spyOn(globalThis, 'fetch').mockImplementation( Object.assign(fakeFetch, { preconnect: globalThis.fetch.preconnect }) ); @@ -100,6 +103,7 @@ async function ingest(mongodb: MongoDBClient, bars = intradayResponse()) { }); } finally { request.mockRestore(); + EOD_CONFIG.API_TOKEN = previousToken; } }