From a7b6feb921abd63a2dda634173bd6abfbe6f3ff6 Mon Sep 17 00:00:00 2001 From: yash10019coder Date: Sun, 1 Sep 2024 05:56:06 +0530 Subject: [PATCH] nit fixes. --- .github/workflows/tokenomics_ci.yml | 3 +-- .../enterprise_blobber_update_allocation_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tokenomics_ci.yml b/.github/workflows/tokenomics_ci.yml index 11f2b1275..db8dbbf1a 100644 --- a/.github/workflows/tokenomics_ci.yml +++ b/.github/workflows/tokenomics_ci.yml @@ -60,12 +60,11 @@ jobs: kube_config: ${{ secrets[format('DEV{0}KC', env.RUNNER_NUMBER)] }} teardown_condition: "TESTS_PASSED" SUBGRAPH_API_URL: ${{ secrets.SUBGRAPH_API_URL }} - TENDERLY_VIRTUAL_TESTNET_ID: "" + TENDERLY_VIRTUAL_TESTNET_RPC_ID: ${{ env.TENDERLY_VIRTUAL_TESTNET_RPC_ID }} graphnode_sc: ${{ secrets.GRAPHNODE_SC }} graphnode_network: ${{ secrets.GRAPHNODE_NETWORK }} graphnode_ethereum_node_url: https://rpc.tenderly.co/fork/"" svc_account_secret: ${{ secrets.SVC_ACCOUNT_SECRET }} - TENDERLY_VIRTUAL_TESTNET_RPC_ID: '' zs3_client: '' zs3_logsearchapi: '' zs3_minio: '' diff --git a/tests/tokenomics_tests/enterprise_blobber_update_allocation_test.go b/tests/tokenomics_tests/enterprise_blobber_update_allocation_test.go index 792321e01..4f5045305 100644 --- a/tests/tokenomics_tests/enterprise_blobber_update_allocation_test.go +++ b/tests/tokenomics_tests/enterprise_blobber_update_allocation_test.go @@ -370,7 +370,7 @@ func TestUpdateEnterpriseAllocation(testSetup *testing.T) { require.Regexp(t, cancelAllocationRegex, strings.Join(output, "\n"), "cancel allcoation fail", strings.Join(output, "\n")) }) - t.RunWithTimeout("Extend duration cost calculation", 15*time.Minute, func(t *test.SystemTest) { + t.RunSequentiallyWithTimeout("Extend duration cost calculation", 15*time.Minute, func(t *test.SystemTest) { utils.SetupWalletWithCustomTokens(t, configPath, 10) amountTotalLockedToAlloc := int64(2e9) // 0.2ZCN @@ -440,7 +440,7 @@ func TestUpdateEnterpriseAllocation(testSetup *testing.T) { require.Regexp(t, cancelAllocationRegex, strings.Join(output, "\n"), "cancel allcoation fail", strings.Join(output, "\n")) }) - t.RunWithTimeout("Upgrade size cost calculation", 15*time.Minute, func(t *test.SystemTest) { + t.RunSequentiallyWithTimeout("Upgrade size cost calculation", 15*time.Minute, func(t *test.SystemTest) { utils.SetupWalletWithCustomTokens(t, configPath, 10) amountTotalLockedToAlloc := int64(2e9) // 0.2ZCN @@ -510,7 +510,7 @@ func TestUpdateEnterpriseAllocation(testSetup *testing.T) { require.Regexp(t, cancelAllocationRegex, strings.Join(output, "\n"), "cancel allcoation fail", strings.Join(output, "\n")) }) - t.RunWithTimeout("Add blobber cost calculation", 15*time.Minute, func(t *test.SystemTest) { + t.RunSequentiallyWithTimeout("Add blobber cost calculation", 15*time.Minute, func(t *test.SystemTest) { utils.SetupWalletWithCustomTokens(t, configPath, 10) amountTotalLockedToAlloc := int64(2e9) // 0.2ZCN @@ -561,7 +561,7 @@ func TestUpdateEnterpriseAllocation(testSetup *testing.T) { require.Regexp(t, cancelAllocationRegex, strings.Join(output, "\n"), "cancel allcoation fail", strings.Join(output, "\n")) }) - t.RunWithTimeout("Replace blobber cost calculation", 15*time.Minute, func(t *test.SystemTest) { + t.RunSequentiallyWithTimeout("Replace blobber cost calculation", 15*time.Minute, func(t *test.SystemTest) { utils.SetupWalletWithCustomTokens(t, configPath, 10) amountTotalLockedToAlloc := int64(2e9) // 0.2ZCN