Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Aug 1, 2024
1 parent 763dcec commit 0f6862c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/integration/logs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('LogDatabase CRUD', () => {
const endTime = new Date() // current time

// Retrieve the latest log entries
let logs = await database.logs.retrieveMultipleLogs(startTime, endTime, 200)
let logs = await database.logs.retrieveMultipleLogs(startTime, endTime, 300)
logs = logs.filter((log) => log.message === newLogEntry.message)

expect(logs?.length).to.equal(1)
Expand Down Expand Up @@ -459,7 +459,7 @@ describe('LogDatabase retrieveMultipleLogs with pagination', () => {
})

it('should return empty results for a non-existent page', async () => {
const nonExistentPage = 100 // Assuming this page doesn't exist
const nonExistentPage = 300 // Assuming this page doesn't exist
const logs = await database.logs.retrieveMultipleLogs(
new Date(Date.now() - 10000), // 10 seconds ago
new Date(), // now
Expand Down

0 comments on commit 0f6862c

Please sign in to comment.