Skip to content

Commit

Permalink
Longer delays for localnet tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Sep 20, 2024
1 parent 987afbc commit 846101f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-localnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
mkdir -p ~/localnet && cd ~/localnet
mxpy localnet setup
nohup mxpy localnet start > localnet.log 2>&1 & echo $! > localnet.pid
sleep 60 # Allow time for the testnet to fully start
sleep 90 # Allow time for the testnet to fully start
# Step 6: Install Node.js and dependencies
- name: Set up Node.js environment
Expand Down
8 changes: 4 additions & 4 deletions src/transaction.local.net.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { loadTestWallets, TestWallet } from "./testutils";
import { createLocalnetProvider, INetworkProvider } from "./testutils/networkProviders";
import { TokenTransfer } from "./tokens";
import { Transaction } from "./transaction";
import { TransactionComputer } from "./transactionComputer";
import { TransactionPayload } from "./transactionPayload";
import { TransactionWatcher } from "./transactionWatcher";
import { TransactionsFactoryConfig } from "./transactionsFactories/transactionsFactoryConfig";
import { TransferTransactionsFactory } from "./transactionsFactories/transferTransactionsFactory";
import { TransactionComputer } from "./transactionComputer";

describe("test transaction", function () {
let alice: TestWallet, bob: TestWallet;
Expand All @@ -30,7 +30,7 @@ describe("test transaction", function () {
}

it("should send transactions and wait for completion", async function () {
this.timeout(70000);
this.timeout(80000);

let provider = createLocalnetProvider();
let watcher = createTransactionWatcher(provider);
Expand Down Expand Up @@ -76,7 +76,7 @@ describe("test transaction", function () {
});

it("should send transaction and wait for completion using the new proxy provider", async function () {
this.timeout(70000);
this.timeout(80000);

let provider = createLocalnetProvider();
let watcher = createTransactionWatcher(provider);
Expand Down Expand Up @@ -142,7 +142,7 @@ describe("test transaction", function () {
});

it("should create transaction using the TokenTransferFactory", async function () {
this.timeout(70000);
this.timeout(80000);

const provider = createLocalnetProvider();
const watcher = createTransactionWatcher(provider);
Expand Down

0 comments on commit 846101f

Please sign in to comment.