fix: remove UploadBatcher crash window, make bot concurrency configurable, fix all test import paths
Deploy FileDrop / deploy (push) Successful in 48s
Deploy FileDrop / deploy (push) Successful in 48s
- Removed UploadBatcher (src/infrastructure/telegram/upload-batcher.ts + DI): pending uploads no longer lost on crash, files sent directly to Telegram - Changed upload-controller to use Bun.file().stream() instead of createReadStream - Made PER_BOT_CONCURRENCY configurable via TELEGRAM_BOT_CONCURRENCY env - Fixed 18 test files with updated import paths and mock shapes - Updated package.json test script: telegramQueue.test.ts → bot-pool.test.ts - Build, lint, and test suite all pass
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { beforeAll, describe, expect, it } from 'bun:test';
|
||||
|
||||
describe('S3 Auth (SigV4)', () => {
|
||||
let verifySignature: typeof import('../src/utils/s3/auth').verifySignature;
|
||||
let verifyPresignedUrl: typeof import('../src/utils/s3/auth').verifyPresignedUrl;
|
||||
let isS3Request: typeof import('../src/utils/s3/auth').isS3Request;
|
||||
let verifySignature: typeof import('../src/interfaces/s3/auth').verifySignature;
|
||||
let verifyPresignedUrl: typeof import('../src/interfaces/s3/auth').verifyPresignedUrl;
|
||||
let isS3Request: typeof import('../src/interfaces/s3/auth').isS3Request;
|
||||
|
||||
beforeAll(async () => {
|
||||
const auth = await import('../src/utils/s3/auth');
|
||||
const auth = await import('../src/interfaces/s3/auth');
|
||||
verifySignature = auth.verifySignature;
|
||||
verifyPresignedUrl = auth.verifyPresignedUrl;
|
||||
isS3Request = auth.isS3Request;
|
||||
|
||||
Reference in New Issue
Block a user