Skip to content

Commit

Permalink
Fix test (allow watcher to get set up) and fix process exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderdeseyn committed Oct 29, 2020
1 parent cd101d0 commit f7cbb18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ task("watch", "Start the file watcher").setAction(
process.exit(1);
});

return new Promise(() => {});
setInterval(() => {}, 1 << 30);
}
);
3 changes: 2 additions & 1 deletion test/project.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ describe("Integration tests examples", function () {
try {
simulateFileChange("Contract.sol");
await this.hre.run("watch");
await sleep(1000);

simulateFileChange("Contract2.sol");
await sleep(5000);
await sleep(4000);
const dir = readArtifactDir(this.hre);
console.log(dir);
expect(dir).to.contain("TestContract2.json");
Expand Down

0 comments on commit f7cbb18

Please sign in to comment.