eAPD icon indicating copy to clipboard operation
eAPD copied to clipboard

[Bug] Segmentation Fault in backend endpoint tests

Open thetif opened this issue 2 years ago • 0 comments

Description

Sometimes when the backend endpoint tests run they fail because of a core dump. You can run them again and usually they will pass. Determine what is causing the segfault and resolve it to make the tests more stable.

Segmentation fault (core dumped)
error Command failed with exit code 139.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 139.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I think I have found the two files that are causing the most problems:

  • api/api.test.js
  • api/files/local.test.js

I have renamed these to *.brokentest.js and I am skipping them.

Steps to reproduce

  1. Create a PR

Expected results- Backend endpoint tests pass reliably and only fail because of tests failures

Actual results- Tests die half way through because of a core dump

thetif avatar Feb 02 '23 21:02 thetif