Skip to content

Commit e7775b2

Browse files
committed
Add /healthz and /status calls
1 parent ce82c6c commit e7775b2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/faucet/src/api/webserver.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe("Webserver", () => {
3636
process.env.FAUCET_CREDIT_AMOUNT_USTAKE = originalEnvVariable;
3737
});
3838

39-
it("can be constructed", async () => {
39+
it("can be constructed and started", async () => {
4040
pendingWithoutSimapp();
4141
const faucet = await Faucet.make(
4242
rpcUrl,
@@ -58,5 +58,11 @@ describe("Webserver", () => {
5858
expect(server).toBeTruthy();
5959
server.start(testingPort);
6060
await sleep(2_000);
61+
62+
const healthz = await fetch(`http://localhost:${testingPort}/healthz`);
63+
expect(healthz.ok);
64+
65+
const status = await fetch(`http://localhost:${testingPort}/status`);
66+
expect(status.ok);
6167
});
6268
});

0 commit comments

Comments
 (0)