From 962bd9b4e51eedf54d47c2018c5ba1b80381f8c6 Mon Sep 17 00:00:00 2001 From: jkrvivian Date: Wed, 8 May 2024 16:42:00 +0800 Subject: [PATCH] Use the correct port of node5 in dockertests --- tools/docker-network/tests/accounttransition_test.go | 2 +- tools/docker-network/tests/api_core_test.go | 6 +++--- tools/docker-network/tests/api_management_test.go | 8 ++++---- tools/docker-network/tests/committeerotation_test.go | 10 +++++----- tools/docker-network/tests/eventapi_test.go | 2 +- .../tests/mempool_invalid_signatures_test.go | 2 +- tools/docker-network/tests/rewards_test.go | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tools/docker-network/tests/accounttransition_test.go b/tools/docker-network/tests/accounttransition_test.go index 54f72324b..e7b638c8c 100644 --- a/tools/docker-network/tests/accounttransition_test.go +++ b/tools/docker-network/tests/accounttransition_test.go @@ -32,7 +32,7 @@ func Test_AccountTransitions(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err) diff --git a/tools/docker-network/tests/api_core_test.go b/tools/docker-network/tests/api_core_test.go index 838f5d5b4..117afd472 100644 --- a/tools/docker-network/tests/api_core_test.go +++ b/tools/docker-network/tests/api_core_test.go @@ -272,7 +272,7 @@ func Test_ValidatorsAPI(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") runErr := d.Run() require.NoError(t, runErr) @@ -343,7 +343,7 @@ func Test_CoreAPI(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") runErr := d.Run() require.NoError(t, runErr) @@ -688,7 +688,7 @@ func Test_CoreAPI_BadRequests(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") runErr := d.Run() require.NoError(t, runErr) diff --git a/tools/docker-network/tests/api_management_test.go b/tools/docker-network/tests/api_management_test.go index 5c0dd67aa..5b0533cdd 100644 --- a/tools/docker-network/tests/api_management_test.go +++ b/tools/docker-network/tests/api_management_test.go @@ -43,7 +43,7 @@ func Test_ManagementAPI_Peers(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") runErr := d.Run() require.NoError(t, runErr) @@ -132,7 +132,7 @@ func Test_ManagementAPI_Peers_BadRequests(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") runErr := d.Run() require.NoError(t, runErr) @@ -198,7 +198,7 @@ func Test_ManagementAPI_Pruning(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") runErr := d.Run() require.NoError(t, runErr) @@ -278,7 +278,7 @@ func Test_ManagementAPI_Snapshots(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") runErr := d.Run() require.NoError(t, runErr) diff --git a/tools/docker-network/tests/committeerotation_test.go b/tools/docker-network/tests/committeerotation_test.go index 6e117dcc4..576be1af8 100644 --- a/tools/docker-network/tests/committeerotation_test.go +++ b/tools/docker-network/tests/committeerotation_test.go @@ -36,7 +36,7 @@ func Test_SmallerCommittee(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err) @@ -81,7 +81,7 @@ func Test_ReuseDueToNoFinalization(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err) @@ -150,7 +150,7 @@ func Test_NoCandidacyPayload(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl", false) d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt", false) d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw", false) - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err) @@ -200,7 +200,7 @@ func Test_Staking(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err) @@ -247,7 +247,7 @@ func Test_Delegation(t *testing.T) { d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") // V4 pubKey in hex: 0xc9ceac37d293155a578381aa313ee74edfa3ac73ee930d045564aae7771e8ffe d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err) diff --git a/tools/docker-network/tests/eventapi_test.go b/tools/docker-network/tests/eventapi_test.go index 7e2eb378c..b1255624e 100644 --- a/tools/docker-network/tests/eventapi_test.go +++ b/tools/docker-network/tests/eventapi_test.go @@ -38,7 +38,7 @@ func Test_MQTTTopics(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err) diff --git a/tools/docker-network/tests/mempool_invalid_signatures_test.go b/tools/docker-network/tests/mempool_invalid_signatures_test.go index feee13e79..6af13dcac 100644 --- a/tools/docker-network/tests/mempool_invalid_signatures_test.go +++ b/tools/docker-network/tests/mempool_invalid_signatures_test.go @@ -30,7 +30,7 @@ func Test_MempoolInvalidSignatures(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err) diff --git a/tools/docker-network/tests/rewards_test.go b/tools/docker-network/tests/rewards_test.go index 55950108b..539e6e7c9 100644 --- a/tools/docker-network/tests/rewards_test.go +++ b/tools/docker-network/tests/rewards_test.go @@ -34,7 +34,7 @@ func Test_ValidatorRewards(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err) @@ -151,7 +151,7 @@ func Test_DelegatorRewards(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err) @@ -209,7 +209,7 @@ func Test_DelayedClaimingRewards(t *testing.T) { d.AddValidatorNode("V2", "docker-network-inx-validator-2-1", "http://localhost:8060", "rms1pqm4xk8e9ny5w5rxjkvtp249tfhlwvcshyr3pc0665jvp7g3hc875k538hl") d.AddValidatorNode("V3", "docker-network-inx-validator-3-1", "http://localhost:8070", "rms1pp4wuuz0y42caz48vv876qfpmffswsvg40zz8v79sy8cp0jfxm4kunflcgt") d.AddValidatorNode("V4", "docker-network-inx-validator-4-1", "http://localhost:8040", "rms1pr8cxs3dzu9xh4cduff4dd4cxdthpjkpwmz2244f75m0urslrsvtsshrrjw") - d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8090") + d.AddNode("node5", "docker-network-node-5-1", "http://localhost:8080") err := d.Run() require.NoError(t, err)