Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
55 stars 258 forks source link

BugFix: Fix the flaky test case #2247

Open vikhyat187 opened 2 weeks ago

vikhyat187 commented 2 weeks ago

Issue Description

1 failing
  1) Tasks
       PATCH /tasks
         Should add startedOn field when assignee passed as a payload:
      AssertionError: expected 1731347350 to equal 1731347351
      + expected - actual
      -1731347350
      +1731347351

      at Context.<anonymous> (test/integration/tasks.test.js:769:50)
      at Generator.next (<anonymous>)
      at fulfilled (test/integration/tasks.test.js:4:58)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)

This test case fails randomly, and passes on re-running it

Expected Behavior

Current Behavior

Screenshots

Reproducibility

Steps to Reproduce

Severity/Priority

Additional Information

Checklist