Skip to content

Commit 8ad6506

Browse files
committed
Remove outdated "auto-discover Tendermint version" tests
Nothing is auto-detected here anymore
1 parent e96fefa commit 8ad6506

File tree

3 files changed

+21
-26
lines changed

3 files changed

+21
-26
lines changed

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,24 @@ import * as responses from "./responses";
2424
* Code that does not require a functional backend should be extracted and tested low-level.
2525
*/
2626
function defaultTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValues): void {
27-
describe("create", () => {
28-
it("can auto-discover Tendermint version and communicate", async () => {
27+
describe("abciInfo", () => {
28+
it("works", async () => {
2929
const client = Comet38Client.create(rpcFactory());
3030
const info = await client.abciInfo();
3131
expect(info).toBeTruthy();
3232
client.disconnect();
3333
});
34+
});
3435

35-
it("can connect to Tendermint with known version", async () => {
36+
describe("genesis", () => {
37+
it("works", async () => {
3638
const client = Comet38Client.create(rpcFactory());
37-
expect(await client.abciInfo()).toBeTruthy();
39+
const genesis = await client.genesis();
40+
expect(genesis).toBeTruthy();
3841
client.disconnect();
3942
});
4043
});
4144

42-
it("can get genesis", async () => {
43-
const client = Comet38Client.create(rpcFactory());
44-
const genesis = await client.genesis();
45-
expect(genesis).toBeTruthy();
46-
client.disconnect();
47-
});
48-
4945
describe("broadcastTxCommit", () => {
5046
it("can broadcast a transaction", async () => {
5147
const client = Comet38Client.create(rpcFactory());

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,20 @@ import { Tendermint34Client } from "./tendermint34client";
2424
* Code that does not require a functional backend should be extracted and tested low-level.
2525
*/
2626
function defaultTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValues): void {
27-
describe("create", () => {
28-
it("can auto-discover Tendermint version and communicate", async () => {
27+
describe("abciInfo", () => {
28+
it("works", async () => {
2929
const client = Tendermint34Client.create(rpcFactory());
3030
const info = await client.abciInfo();
3131
expect(info).toBeTruthy();
3232
client.disconnect();
3333
});
34+
});
3435

35-
it("can connect to Tendermint with known version", async () => {
36+
describe("genesis", () => {
37+
it("works", async () => {
3638
const client = Tendermint34Client.create(rpcFactory());
37-
expect(await client.abciInfo()).toBeTruthy();
39+
const genesis = await client.genesis();
40+
expect(genesis).toBeTruthy();
3841
client.disconnect();
3942
});
4043
});

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,24 @@ import { Tendermint37Client } from "./tendermint37client";
2424
* Code that does not require a functional backend should be extracted and tested low-level.
2525
*/
2626
function defaultTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValues): void {
27-
describe("create", () => {
28-
it("can auto-discover Tendermint version and communicate", async () => {
27+
describe("abciInfo", () => {
28+
it("works", async () => {
2929
const client = Tendermint37Client.create(rpcFactory());
3030
const info = await client.abciInfo();
3131
expect(info).toBeTruthy();
3232
client.disconnect();
3333
});
34+
});
3435

35-
it("can connect to Tendermint with known version", async () => {
36+
describe("genesis", () => {
37+
it("works", async () => {
3638
const client = Tendermint37Client.create(rpcFactory());
37-
expect(await client.abciInfo()).toBeTruthy();
39+
const genesis = await client.genesis();
40+
expect(genesis).toBeTruthy();
3841
client.disconnect();
3942
});
4043
});
4144

42-
it("can get genesis", async () => {
43-
const client = Tendermint37Client.create(rpcFactory());
44-
const genesis = await client.genesis();
45-
expect(genesis).toBeTruthy();
46-
client.disconnect();
47-
});
48-
4945
describe("broadcastTxCommit", () => {
5046
it("can broadcast a transaction", async () => {
5147
const client = Tendermint37Client.create(rpcFactory());

0 commit comments

Comments
 (0)