Test Tendermint version in node info tests
This commit is contained in:
parent
dacaa00948
commit
e454d5836c
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user