Skip to content

Commit

Permalink
try another numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Aug 6, 2024
1 parent 7b89ef3 commit 1f11730
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/test/integration/logs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,17 @@ describe('LogDatabase CRUD', () => {
await new Promise((resolve) => setTimeout(resolve, 1000)) // Delay to allow log to be processed

// Define the time frame for the log retrieval
const startTime = new Date(Date.now() - 5000) // 5 seconds ago
const startTime = new Date(Date.now() - 3000) // 3 seconds ago
const endTime = new Date() // current time

// Retrieve the latest log entries
let logs = await database.logs.retrieveMultipleLogs(startTime, endTime, 500)
let logs = await database.logs.retrieveMultipleLogs(
startTime,
endTime,
200,
LOGGER_MODULE_NAMES.HTTP,
LOG_LEVELS_STR.LEVEL_DEBUG
)
logs = logs.filter((log) => log.message === newLogEntry.message)

expect(logs?.length).to.equal(1)
Expand Down

0 comments on commit 1f11730

Please sign in to comment.