Test version in Tendermint tests

This commit is contained in:
Simon Warta 2022-06-13 18:20:56 +02:00
parent 7d0de950e3
commit 743e5a6056
3 changed files with 11 additions and 5 deletions

View File

@ -325,6 +325,9 @@ export interface NodeInfo {
/** IP and port */
readonly listenAddr: string;
readonly network: string;
/**
* The Tendermint version. Can be empty (see https://github.com/cosmos/cosmos-sdk/issues/7963).
*/
readonly version: string;
readonly channels: string; // ???
readonly moniker: string;

View File

@ -330,6 +330,9 @@ export interface NodeInfo {
/** IP and port */
readonly listenAddr: string;
readonly network: string;
/**
* The Tendermint version. Can be empty (see https://github.com/cosmos/cosmos-sdk/issues/7963).
*/
readonly version: string;
readonly channels: string; // ???
readonly moniker: string;

View File

@ -5,8 +5,8 @@ export const anyMatcher = /^.*$/; // Any string, including empty. Does not do mo
export interface ExpectedValues {
/** The Tendermint version as reported by Tendermint itself */
readonly version: string | RegExp;
readonly chainId: string | RegExp;
readonly version: RegExp;
readonly chainId: RegExp;
readonly appCreator: string;
readonly p2pVersion: number;
readonly blockVersion: number;
@ -41,7 +41,7 @@ export const tendermintInstances = {
blockTime: 500,
expected: {
chainId: /^[-a-zA-Z0-9]{3,30}$/,
version: anyMatcher,
version: /^$/, // Unfortunately we don't get info here
appCreator: "Cosmoshi Netowoko",
p2pVersion: 8,
blockVersion: 11,
@ -53,8 +53,8 @@ export const tendermintInstances = {
version: "0.35.x",
blockTime: 500,
expected: {
chainId: "dockerchain",
version: anyMatcher,
chainId: /^dockerchain$/,
version: /^$/, // Unfortunately we don't get info here
appCreator: "Cosmoshi Netowoko",
p2pVersion: 8,
blockVersion: 11,