fix(tests): make integration tests more robust against race conditions #45

Open
opened 2025-08-08 11:03:29 +00:00 by chartgerink · 0 comments
Owner

Currently, the integration tests will fail seemingly at random due to race conditions. This can be for a variety of reasons - the most frequent occurrence I observe right now is the email verification process.

This can be becuase:

  • Integration tests are not well separated out
  • The database is cleaned by another test before the test is completed

Options could include (but not guaranteed to work):

  • Clean the database when starting the tests instead of when wrapping up the test
Currently, the integration tests will fail seemingly at random due to race conditions. This can be for a variety of reasons - the most frequent occurrence I observe right now is the email verification process. This can be becuase: - Integration tests are not well separated out - The database is cleaned by another test before the test is completed Options could include (but not guaranteed to work): - Clean the database when starting the tests instead of when wrapping up the test
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: libscie/researchequals-api#45
No description provided.