sdk38: Use assert util in distribution module test
This commit is contained in:
parent
0eab1b020e
commit
7fd8355d33
@ -1,6 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { Bech32 } from "@cosmjs/encoding";
|
||||
import { sleep } from "@cosmjs/utils";
|
||||
import { assert, sleep } from "@cosmjs/utils";
|
||||
|
||||
import { coin, coins } from "../coins";
|
||||
import { isPostTxFailure } from "../cosmosclient";
|
||||
@ -55,9 +55,7 @@ describe("DistributionExtension", () => {
|
||||
};
|
||||
|
||||
const receipt = await client.postTx(tx);
|
||||
if (isPostTxFailure(receipt)) {
|
||||
throw new Error("Delegation failed");
|
||||
}
|
||||
assert(!isPostTxFailure(receipt));
|
||||
|
||||
await sleep(75); // wait until transactions are indexed
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user