Skip to content

Commit

Permalink
test(cardano-services): deregister stake key only for the test wallet
Browse files Browse the repository at this point in the history
wallet1 stake key was deregistered when the second test started.
The second test used wallet2, so wallet1, and it's stake pool, ended up having a
deregistered stake key, which caused the fixtures to
contain a pool with a deregistered stake key, causing the unit tests to fail
  • Loading branch information
mirceahasegan committed May 9, 2024
1 parent 9ca045b commit 0c39549
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/e2e/test/local-network/register-pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ describe('local-network/register-pool', () => {
wallet2.wallet.shutdown();
});

beforeEach(() => unDelegateWallet(wallet1.wallet));

test('does not meet pledge', async () => {
const wallet = wallet1.wallet;

await walletReady(wallet);

unDelegateWallet(wallet);

const poolPubKey = await wallet1.bip32Account.derivePublicKey({
index: 0,
role: KeyRole.External
Expand Down Expand Up @@ -167,6 +167,7 @@ describe('local-network/register-pool', () => {
const wallet = wallet2.wallet;

await walletReady(wallet);
unDelegateWallet(wallet);

const poolPubKey = await wallet2.bip32Account.derivePublicKey({
index: 0,
Expand Down

0 comments on commit 0c39549

Please sign in to comment.