Details
Assignee
UnassignedUnassignedReporter
Viacheslav KolesnykViacheslav KolesnykLabels
Priority
TBDDevelopment Team
VolarisTestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee
Unassigned
UnassignedReporter
Viacheslav Kolesnyk
Viacheslav KolesnykLabels
Priority
Development Team
Volaris
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created February 12, 2025 at 12:31 PM
Updated February 12, 2025 at 12:31 PM
Overview
Dao tests, taking
PieceEventsDaoTest
as an example have verifications inFuture.onComplete
handlers while there’s no mechanism to wait for completion so tests complete without any problems.If
Thread.sleep
f.e. for 2 seconds is added to the end of a test method - you can see assertions fail because there’s no actual postgres container, but tests still passSuggested approach
Use vertx for async assertions as in
InstanceEventDaoTest
Either
rework tests to mock postgres calls as in
InstanceEventDaoTest
Add postgres setup