Closed JustSamuel closed 2 months ago
Commit: 6fef8af Base: develop@69bb9d3
Type | Base | This PR |
---|---|---|
Total Statements Coverage | 85.67% | 31.88% (-53.79%) |
Total Branches Coverage | 84.2% | 12.35% (-71.85%) |
Total Functions Coverage | 87.74% | 19.74% (-68%) |
Total Lines Coverage | 85.84% | 30.88% (-54.96%) |
File | Statements | Branches | Functions | Lines |
---|
I tried a lot of combinations of different test suits, but this doesn't seem to actually make a difference? Any n test cases seem to cause it to hang, where n is around 2 or 3.
Using wtfnode
gives me the impression that we are failing to close a typeorm session somewhere, which makes sense since it doesn't fail on sqlite (which has no connection pooling).
If it was a bad test case with a weird hanging promise, then sqlite should have had the same problem. More over, #266 also seems to have the same problem. Meaning that #263 is the last "good" one.
Nvm, this seems to have been an issue since a looooongggg time. At least #225 but could have been longer. I suggest to just try and find the hanging mariadb connection instead of focusing on which test. Most likely it is not related to a test case but to our before and after of the test cases.
Description
Test suite seems to hang in the CI, this branch / PR is to test and find out what causes it.
Related issues/external references
Caused in PR #279
Possible targets:
debtor-controller.ts
payout-request-controller.ts
seller-payout-controller.ts
user-controller.ts
invoice-pdf-service.ts
payout-request-pdf-service.ts
report-pdf-service.ts
report-service.ts
payout-request-service.ts
report-pdf-service.ts
seller-payout-service.ts
Types of changes