Skip to content

Commit

Permalink
Fix integration test for watcher with rev hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
kentaroi committed Aug 14, 2024
1 parent 7340a46 commit 2932a27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions test/integration/watcher-with-rev-dependency-file-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ test.before(async t => {
await sem.wait();
await setTimeout(300);

if (pid && process.kill(pid, "SIGINT"))
if (pid) {
process.kill(pid, "SIGINT");
pid = undefined;

await sem.wait();
await sem.wait();
}
});

test("write CSS files with correct revision hashes", async t => {
Expand Down
7 changes: 4 additions & 3 deletions test/integration/watcher-with-rev.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ test.before(async t => {
await sem.wait();
await setTimeout(300);

if (pid && process.kill(pid, "SIGINT"))
if (pid) {
process.kill(pid, "SIGINT");
pid = undefined;

await sem.wait();
await sem.wait();
}
});

test("write CSS files with correct revision hashes", async t => {
Expand Down

0 comments on commit 2932a27

Please sign in to comment.