Skip to content

Commit d5c2c91

Browse files
committed
fix(tests,ci): recency floating-point precision and checkout action version
1 parent 0ad951b commit d5c2c91

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/periodic-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
review-trigger:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0 # Full history for counting
1919

tests/memory-scoring.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe("memory-scoring", () => {
1515
describe("calculateRecency", () => {
1616
it("returns 1.0 for very recent memories", () => {
1717
const now = Date.now();
18-
expect(calculateRecency(now, 7)).toBe(1.0);
18+
expect(calculateRecency(now, 7)).toBeCloseTo(1.0, 10);
1919
});
2020

2121
it("returns lower values for older memories", () => {

0 commit comments

Comments
 (0)