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
commit 719286b3e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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", () => {