Skip to content

Commit

Permalink
test(cloudflare): use random port for wrangler inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 5, 2024
1 parent 10e6427 commit a46265c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/adapters/cloudflare-durable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ import { describe } from "vitest";
import { wsTestsExec } from "../_utils";

describe("cloudflare-durable", () => {
wsTestsExec("wrangler dev -c ./wrangler-durable.toml --port $PORT");
wsTestsExec(
"wrangler dev -c ./wrangler-durable.toml --inspector-port 0 --port $PORT",
);
});
5 changes: 4 additions & 1 deletion test/adapters/cloudflare.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ import { describe } from "vitest";
import { wsTestsExec } from "../_utils";

describe("cloudflare", () => {
wsTestsExec("wrangler dev -c ./wrangler.toml --port $PORT", false);
wsTestsExec(
"wrangler dev -c ./wrangler.toml --inspector-port 0 --port $PORT",
false,
);
});

0 comments on commit a46265c

Please sign in to comment.