Skip to content

Commit a9b7a98

Browse files
committed
fix: compare updated_at as string in reconcile integration test (CM-1258)
Signed-off-by: Uroš Marolt <uros@marolt.me>
1 parent 4e01e11 commit a9b7a98

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

services/apps/packages_worker/src/osv/__tests__/reconcileOsvRanges.integration.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ interface RangeRow {
2424
last_affected: string | null
2525
range_raw: string | null
2626
unaffected_raw: string | null
27-
deleted_at: Date | null
28-
updated_at: Date
27+
deleted_at: string | null
28+
updated_at: string
2929
}
3030

3131
async function cleanupFixture(qx: QueryExecutor): Promise<void> {
@@ -140,7 +140,7 @@ describe.skipIf(!HAVE_DB)('reconcileOsvRanges / supersedeDepsDevRanges — real
140140

141141
const after = await liveRanges(qx, advisoryPackageId)
142142
const afterUpdatedAt = after.find((r) => r.introduced_version === '1.0.0')?.updated_at
143-
expect(afterUpdatedAt?.getTime()).toBe(beforeUpdatedAt?.getTime())
143+
expect(afterUpdatedAt).toBe(beforeUpdatedAt)
144144
})
145145

146146
it('soft-deletes a stale tuple dropped from the new range set', async () => {

0 commit comments

Comments
 (0)