Test Tendermint version in node info tests

This commit is contained in:
Simon Warta 2020-11-26 13:36:13 +01:00
parent dacaa00948
commit e454d5836c
2 changed files with 5 additions and 0 deletions

View File

@ -137,6 +137,7 @@ function defaultTestSuite(rpcFactory: () => RpcClient, adaptor: Adaptor, expecte
const status = await client.status();
// node info
expect(status.nodeInfo.version).toEqual(expected.version);
expect(status.nodeInfo.protocolVersion).toEqual({
p2p: expected.p2pVersion,
block: expected.blockVersion,

View File

@ -1,4 +1,6 @@
export interface ExpectedValues {
/** The Tendermint version as reported by Tendermint itself */
readonly version: string;
readonly appCreator: string;
readonly p2pVersion: number;
readonly blockVersion: number;
@ -32,6 +34,7 @@ export const tendermintInstances: readonly TendermintInstance[] = [
version: "0.33.x",
blockTime: 1000,
expected: {
version: "0.33.8",
appCreator: "Cosmoshi Netowoko",
p2pVersion: 7,
blockVersion: 10,
@ -43,6 +46,7 @@ export const tendermintInstances: readonly TendermintInstance[] = [
version: "0.34.x",
blockTime: 500,
expected: {
version: "182fa32", // srsly?
appCreator: "Cosmoshi Netowoko",
p2pVersion: 8,
blockVersion: 11,