Skip to content

Commit

Permalink
fix commong js test to terminate console after finish
Browse files Browse the repository at this point in the history
Signed-off-by: ochikov <[email protected]>
  • Loading branch information
ochikov committed Oct 31, 2022
1 parent 13e51a9 commit 821c2de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common_js_test/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ tasks:
deps:
- install
cmds:
- ./node_modules/.bin/mocha -r @babel/register -r chai/register-expect.js "src/test.js"
- ./node_modules/.bin/mocha --inline-diffs -r @babel/register -r chai/register-expect.js "src/test.js"
8 changes: 3 additions & 5 deletions common_js_test/src/test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
const {
Client,
AccountBalanceQuery,
} = require("@hashgraph/sdk");
const { Client, AccountBalanceQuery } = require("@hashgraph/sdk");

describe("CommonJS", function () {
it("it should query each node's balance", async function () {
this.timeout(30000);
this.timeout(15000);

const client = Client.forTestnet();

Expand All @@ -16,5 +13,6 @@ describe("CommonJS", function () {
.setMaxAttempts(1)
.execute(client);
}
client.close();
});
});

0 comments on commit 821c2de

Please sign in to comment.