Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: remove AfterAll hook in e2e #13183

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

cortisiko
Copy link
Member

Description

The editRecipient test is failing on main with the following error:

AggregateError: 
    at Function.Object.<anonymous>.AxiosError.from (/Users/vagrant/git/node_modules/axios/lib/core/AxiosError.js:89:14)
    at RedirectableRequest.handleRequestError (/Users/vagrant/git/node_modules/axios/lib/adapters/http.js:620:25)
    at RedirectableRequest.emit (node:events:519:28)
    at ClientRequest.eventHandlers.<computed> (/Users/vagrant/git/node_modules/follow-redirects/index.js:38:24)
    at ClientRequest.emit (node:events:519:28)
    at emitErrorEvent (node:_http_client:101:11)
    at Socket.socketErrorListener (node:_http_client:504:5)
    at Socket.emit (node:events:519:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/Users/vagrant/git/node_modules/axios/lib/core/Axios.js:45:41)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

After digging into the code a bit, we are trying to stop the fixture server twice. Once in the AfterAll hook and the other time when we use withFixtures where in the try-catch-finally ... specifically the finally block.

This PR removes the afterAll hook in the test

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@cortisiko cortisiko requested a review from a team as a code owner January 24, 2025 22:09
@cortisiko cortisiko self-assigned this Jan 24, 2025
@metamaskbot metamaskbot added the team-qa QA team label Jan 24, 2025
@cortisiko cortisiko added Run Smoke E2E Triggers smoke e2e on Bitrise and removed team-qa QA team labels Jan 24, 2025
Copy link
Contributor

github-actions bot commented Jan 24, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: e5321fe
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/95252e9a-d1dd-4bc4-9ca0-270cebd0a02c

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@cortisiko cortisiko added No QA Needed Apply this label when your PR does not need any QA effort. team-qa QA team labels Jan 24, 2025
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.73%. Comparing base (2ce6596) to head (e5321fe).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13183      +/-   ##
==========================================
+ Coverage   60.58%   60.73%   +0.15%     
==========================================
  Files        1911     1915       +4     
  Lines       42759    42805      +46     
  Branches     5740     5749       +9     
==========================================
+ Hits        25904    25998      +94     
+ Misses      15105    15059      -46     
+ Partials     1750     1748       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cortisiko cortisiko enabled auto-merge January 24, 2025 22:20
Copy link
Contributor

@chrisleewilcox chrisleewilcox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cortisiko cortisiko added this pull request to the merge queue Jan 24, 2025
Merged via the queue into main with commit da9b7f5 Jan 25, 2025
49 of 54 checks passed
@cortisiko cortisiko deleted the e2e/remove-afterAllHook-in-recipient-e2e branch January 25, 2025 00:07
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2025
@metamaskbot metamaskbot added the release-7.40.0 Issue or pull request that will be included in release 7.40.0 label Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort. release-7.40.0 Issue or pull request that will be included in release 7.40.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-qa QA team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants