Merge pull request #645 from cosmos/fix-ledger-test-condition

Fix Ledger test condition
This commit is contained in:
Simon Warta
2021-02-04 16:30:54 +01:00
committed by GitHub
@@ -23,6 +23,7 @@ import { LedgerSigner } from "./ledgersigner";
import {
faucet,
launchpad,
ledgerEnabled,
pendingWithoutLaunchpad,
pendingWithoutLedger,
pendingWithoutSimapp,
@@ -72,11 +73,15 @@ describe("LedgerSigner", () => {
});
beforeEach(async () => {
transport = await createTransport();
if (ledgerEnabled()) {
transport = await createTransport();
}
});
afterEach(async () => {
await transport.close();
if (ledgerEnabled()) {
await transport.close();
}
});
describe("getAccount", () => {