Add some time to recover

This commit is contained in:
Simon Warta 2020-09-30 12:57:22 +02:00
parent 334df80061
commit 698d241d80

View File

@ -11,7 +11,7 @@ import {
SigningCosmosClient,
StdFee,
} from "@cosmjs/launchpad";
import { assert } from "@cosmjs/utils";
import { assert, sleep } from "@cosmjs/utils";
import { LedgerSigner } from "./ledgersigner";
import { pendingWithoutLedger, pendingWithoutLedgerInteractive, wasmd } from "./testutils.spec";
@ -62,6 +62,11 @@ describe("LedgerSigner", () => {
});
describe("sign", () => {
afterEach(async () => {
// It seems the Ledger device needs a bit of time to recover
await sleep(500);
});
it(
"returns valid signature",
async () => {