Skip to content

Commit

Permalink
Fixes e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Jun 16, 2023
1 parent b752e7d commit f270cca
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 40 deletions.
2 changes: 1 addition & 1 deletion genesis/e2e-tests-single-node.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ address = "atest1v4ehgw36x3prswzxggunzv6pxqmnvdj9xvcyzvpsggeyvs3cg9qnywf589qnwvf
vp = "vp_token"
[token.NAM.balances]
Albert = 1000000
"Albert.public_key" = 100
"Albert.public_key" = 1000
Bertha = 1000000
"Bertha.public_key" = 2000
Christel = 1000000
Expand Down
4 changes: 2 additions & 2 deletions tests/src/e2e/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ fn transfer_received_token(
"--amount",
"50000",
"--gas-limit",
"100",
"50",
"--fee-token",
NAM,
"--node",
Expand Down Expand Up @@ -981,7 +981,7 @@ fn submit_ibc_tx(
"--signer",
signer,
"--gas-limit",
"100",
"40",
"--fee-token",
NAM,
"--node",
Expand Down
59 changes: 22 additions & 37 deletions tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ fn ledger_txs_and_queries() -> Result<()> {
"--amount",
"10.1",
"--gas-limit",
"100",
"40",
"--node",
&validator_one_rpc,
],
Expand All @@ -400,7 +400,7 @@ fn ledger_txs_and_queries() -> Result<()> {
"--amount",
"10.1",
"--gas-limit",
"100",
"40",
"--node",
&validator_one_rpc,
],
Expand All @@ -413,7 +413,7 @@ fn ledger_txs_and_queries() -> Result<()> {
"--code-path",
VP_USER_WASM,
"--gas-limit",
"100",
"40",
"--node",
&validator_one_rpc,
],
Expand All @@ -427,7 +427,7 @@ fn ledger_txs_and_queries() -> Result<()> {
"--data-path",
&tx_data_path,
"--gas-limit",
"100",
"40",
"--node",
&validator_one_rpc
],
Expand All @@ -444,7 +444,7 @@ fn ledger_txs_and_queries() -> Result<()> {
"--alias",
"Test-Account",
"--gas-limit",
"100",
"40",
"--node",
&validator_one_rpc,
],
Expand All @@ -464,7 +464,7 @@ fn ledger_txs_and_queries() -> Result<()> {
"--signer",
ALBERT,
"--gas-limit",
"100",
"40",
"--node",
&validator_one_rpc,
],
Expand Down Expand Up @@ -581,25 +581,6 @@ fn wrapper_fee_unshielding() -> Result<()> {
let validator_one_rpc = get_actor_rpc(&test, &Who::Validator(0));

let txs_args = [
(
vec![
// 0. Remove some tokens from Albert's balance
"transfer",
"--source",
ALBERT,
"--target",
BERTHA,
"--token",
NAM,
"--amount",
"1",
"--gas-limit",
"30",
"--ledger-address",
&validator_one_rpc,
],
"Transaction is valid",
),
(
vec![
// 1. Shield some tokens
Expand All @@ -613,7 +594,7 @@ fn wrapper_fee_unshielding() -> Result<()> {
"--amount",
"50000",
"--gas-limit",
"100",
"40",
"--ledger-address",
&validator_one_rpc,
],
Expand All @@ -638,7 +619,7 @@ fn wrapper_fee_unshielding() -> Result<()> {
"--ledger-address",
&validator_one_rpc,
],
"Error in fee unshielding",
"Insufficient transparent balance",
),
// 3. Valid unshielding
(
Expand All @@ -653,7 +634,7 @@ fn wrapper_fee_unshielding() -> Result<()> {
"--amount",
"1",
"--gas-limit",
"1",
"40",
"--fee-spending-key",
A_SPENDING_KEY,
"--ledger-address",
Expand Down Expand Up @@ -1217,7 +1198,9 @@ fn masp_incentives() -> Result<()> {
"--amount",
"20",
"--gas-limit",
"100",
"150",
"--signer",
ALBERT,
"--node",
&validator_one_rpc
],
Expand Down Expand Up @@ -1411,7 +1394,9 @@ fn masp_incentives() -> Result<()> {
"--amount",
"30",
"--gas-limit",
"100",
"150",
"--signer",
ALBERT,
"--node",
&validator_one_rpc
],
Expand Down Expand Up @@ -1824,7 +1809,7 @@ fn masp_incentives() -> Result<()> {
"--signer",
ALBERT,
"--gas-limit",
"100",
"150",
"--node",
&validator_one_rpc
],
Expand Down Expand Up @@ -3366,7 +3351,7 @@ fn pgf_governance_proposal() -> Result<()> {
"--amount",
"900",
"--gas-limit",
"150",
"40",
"--ledger-address",
&validator_one_rpc,
];
Expand All @@ -3385,7 +3370,7 @@ fn pgf_governance_proposal() -> Result<()> {
"--data-path",
valid_proposal_json_path.to_str().unwrap(),
"--gas-limit",
"150",
"40",
"--ledger-address",
&validator_one_rpc,
];
Expand All @@ -3403,7 +3388,7 @@ fn pgf_governance_proposal() -> Result<()> {
"--data-path",
valid_proposal_json_path.to_str().unwrap(),
"--gas-limit",
"150",
"40",
"--ledger-address",
&validator_one_rpc,
];
Expand Down Expand Up @@ -3487,7 +3472,7 @@ fn pgf_governance_proposal() -> Result<()> {
"--signer",
"validator-0",
"--gas-limit",
"150",
"40",
"--ledger-address",
&validator_one_rpc,
];
Expand Down Expand Up @@ -3515,7 +3500,7 @@ fn pgf_governance_proposal() -> Result<()> {
"--signer",
BERTHA,
"--gas-limit",
"150",
"40",
"--ledger-address",
&validator_one_rpc,
];
Expand All @@ -3536,7 +3521,7 @@ fn pgf_governance_proposal() -> Result<()> {
"--signer",
BERTHA,
"--gas-limit",
"150",
"40",
"--ledger-address",
&validator_one_rpc,
];
Expand Down

0 comments on commit f270cca

Please sign in to comment.