Remove LEDGER_INTERACTIVE_ENABLED
This commit is contained in:
parent
873f8c05f5
commit
127dbd6d93
@ -67,7 +67,6 @@ transactions. Start a local wasmd blockchain as described in
|
||||
and execute:
|
||||
|
||||
```sh
|
||||
export LEDGER_INTERACTIVE_ENABLED=1
|
||||
export LEDGER_ENABLED=1
|
||||
export WASMD_ENABLED=1
|
||||
yarn test
|
||||
|
||||
@ -14,12 +14,7 @@ import {
|
||||
import { assert, sleep } from "@cosmjs/utils";
|
||||
|
||||
import { LedgerSigner } from "./ledgersigner";
|
||||
import {
|
||||
pendingWithoutLedger,
|
||||
pendingWithoutLedgerInteractive,
|
||||
pendingWithoutWasmd,
|
||||
wasmd,
|
||||
} from "./testutils.spec";
|
||||
import { pendingWithoutLedger, pendingWithoutWasmd, wasmd } from "./testutils.spec";
|
||||
|
||||
const interactiveTimeout = 120_000;
|
||||
|
||||
@ -75,7 +70,7 @@ describe("LedgerSigner", () => {
|
||||
it(
|
||||
"returns valid signature",
|
||||
async () => {
|
||||
pendingWithoutLedgerInteractive();
|
||||
pendingWithoutLedger();
|
||||
const signer = new LedgerSigner({
|
||||
testModeAllowed: true,
|
||||
hdPaths: [makeCosmoshubPath(0), makeCosmoshubPath(1), makeCosmoshubPath(10)],
|
||||
@ -118,7 +113,7 @@ describe("LedgerSigner", () => {
|
||||
it(
|
||||
"creates signature accepted by launchpad backend",
|
||||
async () => {
|
||||
pendingWithoutLedgerInteractive();
|
||||
pendingWithoutLedger();
|
||||
pendingWithoutWasmd();
|
||||
const signer = new LedgerSigner({
|
||||
testModeAllowed: true,
|
||||
|
||||
@ -8,16 +8,6 @@ export function pendingWithoutLedger(): void {
|
||||
}
|
||||
}
|
||||
|
||||
export function ledgerInteractiveEnabled(): boolean {
|
||||
return !!process.env.LEDGER_INTERACTIVE_ENABLED;
|
||||
}
|
||||
|
||||
export function pendingWithoutLedgerInteractive(): void {
|
||||
if (!ledgerInteractiveEnabled()) {
|
||||
return pending("Set LEDGER_INTERACTIVE_ENABLED to enable Wasmd based tests");
|
||||
}
|
||||
}
|
||||
|
||||
export function wasmdEnabled(): boolean {
|
||||
return !!process.env.WASMD_ENABLED;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user