Skip to content

Commit 6bb9bcf

Browse files
committed
faucet: delete pending() calls from test
1 parent 1fdce63 commit 6bb9bcf

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

packages/faucet/src/faucet.spec.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ import { assert } from "@cosmjs/utils";
66
import { Faucet } from "./faucet";
77
import { TokenConfiguration } from "./tokenmanager";
88

9-
function pendingWithoutSimapp(): void {
10-
if (globalThis.process?.env.SIMAPP47_ENABLED || globalThis.process?.env.SIMAPP50_ENABLED)) {
11-
return;
12-
}
13-
pending("Set SIMAPP{47,50}_ENABLED to enabled Stargate node-based tests");
14-
}
9+
const enabled = !!(globalThis.process?.env.SIMAPP47_ENABLED || globalThis.process?.env.SIMAPP50_ENABLED);
1510

1611
const defaultTokenConfig: TokenConfiguration = {
1712
bankTokens: ["ucosm", "ustake"],
@@ -25,7 +20,7 @@ function makeRandomAddress(): string {
2520
const faucetMnemonic =
2621
"economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone";
2722

28-
describe("Faucet", () => {
23+
(enabled ? describe : xdescribe)("Faucet", () => {
2924
const pathBuilder = makeCosmoshubPath;
3025

3126
const apiUrl = "http://localhost:26658";
@@ -44,7 +39,6 @@ describe("Faucet", () => {
4439
describe("stargate", () => {
4540
describe("constructor", () => {
4641
it("can be constructed", async () => {
47-
pendingWithoutSimapp();
4842
const faucet = await Faucet.make(
4943
apiUrl,
5044
defaultAddressPrefix,
@@ -60,7 +54,6 @@ describe("Faucet", () => {
6054

6155
describe("availableTokens", () => {
6256
it("is empty when no tokens are configured", async () => {
63-
pendingWithoutSimapp();
6457
const faucet = await Faucet.make(
6558
apiUrl,
6659
defaultAddressPrefix,
@@ -75,7 +68,6 @@ describe("Faucet", () => {
7568
});
7669

7770
it("is not empty with default token config", async () => {
78-
pendingWithoutSimapp();
7971
const faucet = await Faucet.make(
8072
apiUrl,
8173
defaultAddressPrefix,
@@ -92,7 +84,6 @@ describe("Faucet", () => {
9284

9385
describe("send", () => {
9486
it("can send bank token", async () => {
95-
pendingWithoutSimapp();
9687
const faucet = await Faucet.make(
9788
apiUrl,
9889
defaultAddressPrefix,
@@ -126,7 +117,6 @@ describe("Faucet", () => {
126117

127118
describe("refill", () => {
128119
it("works", async () => {
129-
pendingWithoutSimapp();
130120
const faucet = await Faucet.make(
131121
apiUrl,
132122
defaultAddressPrefix,
@@ -155,7 +145,6 @@ describe("Faucet", () => {
155145

156146
describe("credit", () => {
157147
it("works for fee token", async () => {
158-
pendingWithoutSimapp();
159148
const faucet = await Faucet.make(
160149
apiUrl,
161150
defaultAddressPrefix,
@@ -180,7 +169,6 @@ describe("Faucet", () => {
180169
});
181170

182171
it("works for stake token", async () => {
183-
pendingWithoutSimapp();
184172
const faucet = await Faucet.make(
185173
apiUrl,
186174
defaultAddressPrefix,
@@ -207,7 +195,6 @@ describe("Faucet", () => {
207195

208196
describe("configuredTokens", () => {
209197
it("works", async () => {
210-
pendingWithoutSimapp();
211198
const faucet = await Faucet.make(
212199
apiUrl,
213200
defaultAddressPrefix,
@@ -224,7 +211,6 @@ describe("Faucet", () => {
224211

225212
describe("loadAccounts", () => {
226213
it("works", async () => {
227-
pendingWithoutSimapp();
228214
const faucet = await Faucet.make(
229215
apiUrl,
230216
defaultAddressPrefix,

0 commit comments

Comments
 (0)