fix promise all in test

This commit is contained in:
einhornimmond 2025-12-30 12:45:47 +01:00
parent 7d4e88f39a
commit 8aebe5d35a

View File

@ -23,7 +23,7 @@ afterAll(async () => {
describe('openaiThreads query test', () => {
it('should insert a new openai thread', async () => {
await Promise.resolve([dbInsertOpenaiThread('7', 1), dbInsertOpenaiThread('72', 6)])
await Promise.all([dbInsertOpenaiThread('7', 1), dbInsertOpenaiThread('72', 6)])
const result = await db.select().from(openaiThreadsTable)
expect(result).toHaveLength(2)
expect(result).toMatchObject([