stakwork / sphinx-tribes-frontend

Frontend for sphinx tribes and bounties. The bounty platform that pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
12 stars 42 forks source link

[tests] added test passes in PR but fails subsequent tests #318

Open kevkevinpal opened 7 months ago

kevkevinpal commented 7 months ago

This PR added a test that worked in the PR https://github.com/stakwork/sphinx-tribes-frontend/pull/257

but the PR's after started to fail and we can see the log message in the same PR's tests but it still said the test passed

/home/runner/work/sphinx-tribes-frontend/sphinx-tribes-frontend/node_modules/node-fetch/lib/index.js:1564
      reject(new FetchError("request to ".concat(request.url, " failed, reason: ").concat(err.message), 'system', err));
             ^
FetchError {
  message: 'request to http://localhost:5002/people/search?search=anish&sortBy=owner_alias&limit=4 failed, reason: connect ECONNREFUSED ::1:5002',
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}

We should figure out a way to reproduce this issue and then figure out why it silently passes in the pull request and then fails after

ecurrencyhodler commented 7 months ago

For now, if using "nock" in testing make sure to use localhost5002.

ecurrencyhodler commented 7 months ago

Kev will investigate and get back by Wed 2/27/24.