Skip to content

Commit 0f81b45

Browse files
committed
Add timeout handler to memory
1 parent 9aba871 commit 0f81b45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/lib/__tests__/memory.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describe("Memory", () => {
117117
(memory.content as Content).content === dissimilarMemoryContent,
118118
),
119119
).toBe(false);
120-
});
120+
}, 6000);
121121

122122
test("Verify memory similarity and ranking", async () => {
123123
// Define a set of memories with varying degrees of similarity
@@ -195,7 +195,7 @@ describe("Memory", () => {
195195

196196
expect(highSimilarityIndex).toBeLessThan(lowSimilarityIndex);
197197
});
198-
});
198+
}, 6000);
199199
describe("Memory - Basic tests", () => {
200200
let memoryManager: MemoryManager;
201201
let runtime = null;
@@ -529,7 +529,7 @@ describe("Memory - Extended Tests", () => {
529529
(memory.content as Content).content === dissimilarMemoryContent,
530530
),
531531
).toBe(false);
532-
});
532+
}, 60000);
533533

534534
test("Verify memory similarity and ranking", async () => {
535535
// Define a set of memories with varying degrees of similarity
@@ -606,5 +606,5 @@ describe("Memory - Extended Tests", () => {
606606
);
607607

608608
expect(highSimilarityIndex).toBeLessThan(lowSimilarityIndex);
609-
});
609+
}, 60000);
610610
});

0 commit comments

Comments
 (0)