Merge pull request #645 from cosmos/fix-ledger-test-condition
Fix Ledger test condition
This commit is contained in:
commit
719286b3e1
@ -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", () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user