Skip to content

Commit 0613583

Browse files
committed
Solana. Fixed tests and pre-commit
1 parent 922959c commit 0613583

File tree

5 files changed

+6
-25
lines changed

5 files changed

+6
-25
lines changed

lib/solana/lib/assets/instance/network/net-rules-stop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ INTERFACE=$(ip -br addr show | grep -v '^lo' | awk '{print $1}' | head -n1)
1010
/usr/sbin/iptables -t mangle -F MARKING
1111
/usr/sbin/iptables -t mangle -X MARKING
1212

13-
exit 0;
13+
exit 0;

lib/solana/lib/assets/instance/network/net-rules.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ ExecStart=/opt/instance/network/net-rules-start.sh _LIMIT_OUT_TRAFFIC_MBPS_
99
ExecStop=/opt/instance/network/net-rules-stop.sh
1010

1111
[Install]
12-
WantedBy=multi-user.target
12+
WantedBy=multi-user.target

lib/solana/lib/assets/instance/network/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ mv $NET_SCRIPTS_PATH/net-sync-checker.timer /etc/systemd/system/net-sync-checker
3131

3232
echo "Starting net sync checker timer"
3333
systemctl start net-sync-checker.timer
34-
systemctl enable net-sync-checker.timer
34+
systemctl enable net-sync-checker.timer

lib/solana/test/ha-nodes-stack.test.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,8 @@ describe("SolanaHANodesStack", () => {
1414
stackName: `solana-ha-nodes-${config.baseNodeConfig.nodeConfiguration}`,
1515
env: { account: config.baseConfig.accountId, region: config.baseConfig.region },
1616

17-
instanceType: config.baseNodeConfig.instanceType,
18-
instanceCpuType: config.baseNodeConfig.instanceCpuType,
19-
solanaCluster: config.baseNodeConfig.solanaCluster,
20-
solanaVersion: config.baseNodeConfig.solanaVersion,
21-
nodeConfiguration: config.baseNodeConfig.nodeConfiguration,
22-
dataVolume: config.baseNodeConfig.dataVolume,
23-
accountsVolume: config.baseNodeConfig.accountsVolume,
24-
25-
albHealthCheckGracePeriodMin: config.haNodeConfig.albHealthCheckGracePeriodMin,
26-
heartBeatDelayMin: config.haNodeConfig.heartBeatDelayMin,
27-
numberOfNodes: config.haNodeConfig.numberOfNodes,
17+
...config.baseNodeConfig,
18+
...config.haNodeConfig,
2819
});
2920

3021
// Prepare the stack for assertions.

lib/solana/test/single-node-stack.test.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,7 @@ describe("SolanaSingleNodeStack", () => {
1414
stackName: `solana-single-node-${config.baseNodeConfig.nodeConfiguration}`,
1515
env: { account: config.baseConfig.accountId, region: config.baseConfig.region },
1616

17-
instanceType: config.baseNodeConfig.instanceType,
18-
instanceCpuType: config.baseNodeConfig.instanceCpuType,
19-
solanaCluster: config.baseNodeConfig.solanaCluster,
20-
solanaVersion: config.baseNodeConfig.solanaVersion,
21-
nodeConfiguration: config.baseNodeConfig.nodeConfiguration,
22-
dataVolume: config.baseNodeConfig.dataVolume,
23-
accountsVolume: config.baseNodeConfig.accountsVolume,
24-
solanaNodeIdentitySecretARN: config.baseNodeConfig.solanaNodeIdentitySecretARN,
25-
voteAccountSecretARN: config.baseNodeConfig.voteAccountSecretARN,
26-
authorizedWithdrawerAccountSecretARN: config.baseNodeConfig.authorizedWithdrawerAccountSecretARN,
27-
registrationTransactionFundingAccountSecretARN: config.baseNodeConfig.registrationTransactionFundingAccountSecretARN,
17+
...config.baseNodeConfig
2818
});
2919

3020
// Prepare the stack for assertions.

0 commit comments

Comments
 (0)