Skip to content

Commit

Permalink
fix: fixed flaky test in batch1
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
  • Loading branch information
quiet-node committed Jan 17, 2025
1 parent fb49b63 commit 4c8d681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/tests/acceptance/rpc_batch1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {
]);
});

it('should execute "eth_sendRawTransaction" if receiver\'s account has receiver_sig_required disabled', async function () {
it(`should execute "eth_sendRawTransaction" if receiver's account has receiver_sig_required disabled`, async function () {
const newPrivateKey = PrivateKey.generateED25519();
const newAccount = await new AccountCreateTransaction()
.setKey(newPrivateKey.publicKey)
Expand All @@ -1648,14 +1648,14 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {

const transaction = await newAccount.execute(servicesNode.client);
const receipt = await transaction.getReceipt(servicesNode.client);
await Utils.wait(3000);

if (!receipt.accountId) {
throw new Error('Failed to create new account - accountId is null');
}

const toAddress = Utils.idToEvmAddress(receipt.accountId.toString());
const verifyAccount = await mirrorNode.get(`/accounts/${toAddress}`, requestId);

if (verifyAccount && !verifyAccount.account) {
verifyAccount == (await mirrorNode.get(`/accounts/${toAddress}`, requestId));
}
Expand Down

0 comments on commit 4c8d681

Please sign in to comment.