Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
RamIdeas committed Oct 3, 2024
1 parent bb2d0cf commit 451510c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 8 additions & 3 deletions packages/wrangler/e2e/dev.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -927,10 +927,15 @@ describe("custom builds", () => {
await helper.seed({
"public/index.html": "world",
});
await setTimeout(300);

const res2 = await fetch(url);
await expect(res2.text()).resolves.toBe("world");
const resText = await retry(
(text) => text === "hello\n",
async () => {
const res2 = await fetch(url);
return res2.text();
}
);
await expect(resText).toBe("world");
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ export class BundlerController extends Controller<BundlerControllerEventMap> {
#assetsWatcher?: ReturnType<typeof watch>;
async #ensureWatchingAssets(config: StartDevWorkerOptions) {
await this.#assetsWatcher?.close();
console.log(config.assets?.directory);

if (config.assets?.directory) {
this.#assetsWatcher = watch(config.assets.directory, {
Expand Down

0 comments on commit 451510c

Please sign in to comment.