Skip to content

Commit 4a24e8f

Browse files
committed
tendermint-rpc: use top level xdescribe() call
1 parent 8fb7421 commit 4a24e8f

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

packages/tendermint-rpc/src/comet38/comet38client.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -851,10 +851,10 @@ function websocketTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValue
851851
});
852852
}
853853

854-
describe("Comet38Client with CometBFT 0.38 backend", () => {
854+
(tendermintEnabled ? describe : xdescribe)("Comet38Client with CometBFT 0.38 backend", () => {
855855
const { url, expected } = tendermintInstances[38];
856856

857-
(tendermintEnabled ? it : xit)("can connect to a given url", async () => {
857+
it("can connect to a given url", async () => {
858858
// http connection
859859
{
860860
const client = await Comet38Client.connect("http://" + url);
@@ -872,11 +872,11 @@ describe("Comet38Client with CometBFT 0.38 backend", () => {
872872
}
873873
});
874874

875-
(tendermintEnabled ? describe : xdescribe)("With HttpClient", () => {
875+
describe("With HttpClient", () => {
876876
defaultTestSuite(() => new HttpClient("http://" + url), expected);
877877
});
878878

879-
(tendermintEnabled ? describe : xdescribe)("With WebsocketClient", () => {
879+
describe("With WebsocketClient", () => {
880880
// don't print out WebSocket errors if marked pending
881881
const onError = globalThis.process?.env.TENDERMINT_ENABLED ? console.error : () => 0;
882882
const factory = (): WebsocketClient => new WebsocketClient("ws://" + url, onError);

packages/tendermint-rpc/src/tendermint34/tendermint34client.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,10 +846,10 @@ function websocketTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValue
846846
});
847847
}
848848

849-
describe("Tendermint34Client", () => {
849+
(tendermintEnabled ? describe : xdescribe)("Tendermint34Client", () => {
850850
const { url, expected } = tendermintInstances[34];
851851

852-
(tendermintEnabled ? it : xit)("can connect to a given url", async () => {
852+
it("can connect to a given url", async () => {
853853
// http connection
854854
{
855855
const client = await Tendermint34Client.connect("http://" + url);
@@ -867,11 +867,11 @@ describe("Tendermint34Client", () => {
867867
}
868868
});
869869

870-
(tendermintEnabled ? describe : xdescribe)("With HttpClient", () => {
870+
describe("With HttpClient", () => {
871871
defaultTestSuite(() => new HttpClient("http://" + url), expected);
872872
});
873873

874-
(tendermintEnabled ? describe : xdescribe)("With WebsocketClient", () => {
874+
describe("With WebsocketClient", () => {
875875
// don't print out WebSocket errors if marked pending
876876
const onError = globalThis.process?.env.TENDERMINT_ENABLED ? console.error : () => 0;
877877
const factory = (): WebsocketClient => new WebsocketClient("ws://" + url, onError);

packages/tendermint-rpc/src/tendermint37/tendermint37client.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -848,10 +848,10 @@ function websocketTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValue
848848
});
849849
}
850850

851-
describe("Tendermint37Client", () => {
851+
(tendermintEnabled ? describe : xdescribe)("Tendermint37Client", () => {
852852
const { url, expected } = tendermintInstances[37];
853853

854-
(tendermintEnabled ? it : xit)("can connect to a given url", async () => {
854+
it("can connect to a given url", async () => {
855855
// http connection
856856
{
857857
const client = await Tendermint37Client.connect("http://" + url);
@@ -869,11 +869,11 @@ describe("Tendermint37Client", () => {
869869
}
870870
});
871871

872-
(tendermintEnabled ? describe : xdescribe)("With HttpClient", () => {
872+
describe("With HttpClient", () => {
873873
defaultTestSuite(() => new HttpClient("http://" + url), expected);
874874
});
875875

876-
(tendermintEnabled ? describe : xdescribe)("With WebsocketClient", () => {
876+
describe("With WebsocketClient", () => {
877877
// don't print out WebSocket errors if marked pending
878878
const onError = globalThis.process?.env.TENDERMINT_ENABLED ? console.error : () => 0;
879879
const factory = (): WebsocketClient => new WebsocketClient("ws://" + url, onError);

0 commit comments

Comments
 (0)