Skip to content

Commit

Permalink
test: upgrade-12 updated MaxBytes param
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Nov 29, 2023
1 parent c747b75 commit 52a9975
Show file tree
Hide file tree
Showing 5 changed files with 1,958 additions and 0 deletions.
1 change: 1 addition & 0 deletions proposals/63:upgrade-12/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
12 changes: 12 additions & 0 deletions proposals/63:upgrade-12/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "module",
"license": "Apache-2.0",
"dependencies": {
"ava": "^5.3.1",
"execa": "^7.2.0"
},
"scripts": {
"agops": "yarn --cwd /usr/src/agoric-sdk/ --silent agops"
},
"packageManager": "[email protected]"
}
14 changes: 14 additions & 0 deletions proposals/63:upgrade-12/post.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import test from 'ava';

import { agd } from '../../upgrade-test-scripts/lib/cliHelper.js';

test('Ensure MaxBytes param was updated', async t => {
const { value: rawParams } = await agd.query(
'params',
'subspace',
'baseapp',
'BlockParams',
);
const blockParams = JSON.parse(rawParams);
t.is(blockParams.max_bytes, '5242880');
});
4 changes: 4 additions & 0 deletions proposals/63:upgrade-12/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
source /usr/src/upgrade-test-scripts/env_setup.sh

yarn ava post.test.js
Loading

0 comments on commit 52a9975

Please sign in to comment.