We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce82c6c commit e7775b2Copy full SHA for e7775b2
packages/faucet/src/api/webserver.spec.ts
@@ -36,7 +36,7 @@ describe("Webserver", () => {
36
process.env.FAUCET_CREDIT_AMOUNT_USTAKE = originalEnvVariable;
37
});
38
39
- it("can be constructed", async () => {
+ it("can be constructed and started", async () => {
40
pendingWithoutSimapp();
41
const faucet = await Faucet.make(
42
rpcUrl,
@@ -58,5 +58,11 @@ describe("Webserver", () => {
58
expect(server).toBeTruthy();
59
server.start(testingPort);
60
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);
67
68
0 commit comments