Skip to content

Commit 11085e0

Browse files
committed
fix(tests): run knowledge utils cases sequentially over shared per-test state
1 parent 620b7c4 commit 11085e0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

apps/sim/app/api/knowledge/utils.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ describe('Knowledge Utils', () => {
309309
})
310310

311311
describe('processDocumentAsync', () => {
312-
it.concurrent('should insert embeddings before updating document counters', async () => {
312+
it('should insert embeddings before updating document counters', async () => {
313313
kbRows.push({
314314
id: 'kb1',
315315
userId: 'user1',
@@ -360,7 +360,7 @@ describe('Knowledge Utils', () => {
360360
})
361361

362362
describe('checkKnowledgeBaseAccess', () => {
363-
it.concurrent('should return success for owner', async () => {
363+
it('should return success for owner', async () => {
364364
kbRows.push({ id: 'kb1', userId: 'user1' })
365365
const result = await checkKnowledgeBaseAccess('kb1', 'user1')
366366

@@ -376,7 +376,7 @@ describe('Knowledge Utils', () => {
376376
})
377377

378378
describe('checkDocumentAccess', () => {
379-
it.concurrent('should return unauthorized when user mismatch', async () => {
379+
it('should return unauthorized when user mismatch', async () => {
380380
kbRows.push({ id: 'kb1', userId: 'owner' })
381381
const result = await checkDocumentAccess('kb1', 'doc1', 'intruder')
382382

@@ -388,7 +388,7 @@ describe('Knowledge Utils', () => {
388388
})
389389

390390
describe('checkChunkAccess', () => {
391-
it.concurrent('should fail when document is not completed', async () => {
391+
it('should fail when document is not completed', async () => {
392392
kbRows.push({ id: 'kb1', userId: 'user1' })
393393
docRows.push({ id: 'doc1', knowledgeBaseId: 'kb1', processingStatus: 'processing' })
394394

@@ -415,7 +415,7 @@ describe('Knowledge Utils', () => {
415415
})
416416

417417
describe('generateEmbeddings', () => {
418-
it.concurrent('should return same length as input', async () => {
418+
it('should return same length as input', async () => {
419419
const result = await generateEmbeddings(['a', 'b'])
420420

421421
expect(result.embeddings.length).toBe(2)

0 commit comments

Comments
 (0)