From 34e063e17d9844d30768fb59fab52dac383818d1 Mon Sep 17 00:00:00 2001 From: petreze Date: Fri, 13 Jan 2023 11:45:34 +0200 Subject: [PATCH] Return dependabot dependency checker (#1361) * return dependabot dependency checker Signed-off-by: Petar Tonev * fix contractcall integration test Signed-off-by: Petar Tonev * test dependabot Signed-off-by: Petar Tonev * fix contractcall integration test and dependabot config Signed-off-by: Petar Tonev Signed-off-by: Petar Tonev --- .github/dependabot.yml | 27 +++++++++++++++++++ .github/renovate.json | 24 ----------------- .../ContractCallIntegrationTest.js | 10 +++---- 3 files changed, 32 insertions(+), 29 deletions(-) create mode 100644 .github/dependabot.yml delete mode 100644 .github/renovate.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..0c9121db4 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,27 @@ +version: 2 +updates: +- package-ecosystem: npm + directory: "/" + schedule: + interval: weekly + open-pull-requests-limit: 10 +- package-ecosystem: npm + directory: "packages/cryptography" + schedule: + interval: weekly + open-pull-requests-limit: 10 +- package-ecosystem: npm + directory: "packages/proto" + schedule: + interval: weekly + open-pull-requests-limit: 10 +- package-ecosystem: npm + directory: "/examples" + schedule: + interval: weekly + open-pull-requests-limit: 5 +- package-ecosystem: npm + directory: "/examples/react-native-example" + schedule: + interval: weekly + open-pull-requests-limit: 5 \ No newline at end of file diff --git a/.github/renovate.json b/.github/renovate.json deleted file mode 100644 index 74094eea9..000000000 --- a/.github/renovate.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "branchPrefix": "renovate/", - "username": "renovate-release", - "gitAuthor": "Renovate Bot ", - "onboarding": false, - "platform": "github", - "includeForks": true, - "repositories": ["hashgraph/hedera-sdk-js"], - "packageRules": [ - { - "description": "lockFileMaintenance", - "matchUpdateTypes": [ - "pin", - "digest", - "patch", - "minor", - "major", - "lockFileMaintenance" - ], - "dependencyDashboardApproval": false, - "stabilityDays": 0 - } - ] -} diff --git a/test/integration/ContractCallIntegrationTest.js b/test/integration/ContractCallIntegrationTest.js index 6bed0528d..09247d851 100644 --- a/test/integration/ContractCallIntegrationTest.js +++ b/test/integration/ContractCallIntegrationTest.js @@ -318,8 +318,8 @@ describe("ContractCallIntegration", function () { } }); - it("should timeout when network node takes longer than 10s to execute the transaction", async function () { - this.timeout(50000); + it("should mark as busy when network node takes longer than 10s to execute the transaction", async function () { + this.timeout(120000); const myAccountId = AccountId.fromString("0.0.47439"); const myPrivateKey = PrivateKey.fromString( @@ -377,7 +377,7 @@ describe("ContractCallIntegration", function () { try { const contractQuery = await new ContractCallQuery() //Set the gas for the query - .setGas(15000000) + .setGas(16000000) //Set the contract ID to return the request for .setContractId(contractId) //Set the contract function to call @@ -387,7 +387,7 @@ describe("ContractCallIntegration", function () { ) //Set the query payment for the node returning the request //This value must cover the cost of the request otherwise will fail - .setQueryPayment(new Hbar(2)); + .setQueryPayment(new Hbar(35)); //Submit to a Hedera network // const txResponse = await contractQuery.execute(client); @@ -397,7 +397,7 @@ describe("ContractCallIntegration", function () { } catch (error) { err = error; } - expect(err.toString()).to.includes("TIMEOUT"); + expect(err.toString()).to.includes("BUSY"); if (!err) { throw new Error("query did not error");