Skip to content

Commit

Permalink
Fix task exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderdeseyn committed Oct 30, 2020
1 parent c1078ff commit 62de175
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ task("watch", "Start the file watcher").setAction(
console.log(`Watcher error: ${error}`);
process.exit(1);
});

await new Promise((resolve) => setTimeout(resolve, 2000000000));
}
);
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.7.3;

contract TestContract {
contract TestContract3 {
uint256 amount;

string message = "placeholder";
Expand Down
2 changes: 1 addition & 1 deletion test/project.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("Watcher tests", function () {
it("Watch contracts and clean + compile on change", async function () {
try {
simulateFileChange("Contract.sol");
await this.hre.run("watch");
this.hre.run("watch");
await sleep(1000);

console.log("=========== Simulating file change =============");
Expand Down

0 comments on commit 62de175

Please sign in to comment.