jazz icon indicating copy to clipboard operation
jazz copied to clipboard

gracefulShutdown is called twice during a logOut call

Open bdparrish opened this issue 8 months ago • 0 comments

Expected

When calling the logOut function the gracefulShutdown is only called once.

Actual

While writing a test using Cypress.io I setup a spy on the gracefulShutdown function using the following:

const logOutSpy = cy.spy().as('logOutSpy');

account._raw.core.node.gracefulShutdown = logOutSpy

When calling the logOut function returned from useAccount the gracefulShutdown is called twice instead of once. Is this the expected outcome?

Image

bdparrish avatar Mar 31 '25 20:03 bdparrish