Skip to content

Commit a2a6019

Browse files
committed
update mobile wallet test timeout
1 parent 7a49d2a commit a2a6019

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

tests/live/mobileWallet.test.ts

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,26 @@ import { expect, test, describe } from "vitest";
33
const baseEndpoint = `https://infra-core-api.aws.qa.acmuiuc.org`;
44

55
describe("Mobile pass issuance", async () => {
6-
test("Test that passes will not be issued for non-members", async () => {
7-
const response = await fetch(
8-
`${baseEndpoint}/api/v1/mobileWallet/[email protected]`,
9-
{ method: "POST" },
10-
);
11-
expect(response.status).toBe(403);
12-
});
13-
test("Test that passes will be issued for members", async () => {
14-
const response = await fetch(
15-
`${baseEndpoint}/api/v1/mobileWallet/[email protected]`,
16-
{ method: "POST" },
17-
);
18-
expect(response.status).toBe(202);
19-
});
6+
test(
7+
"Test that passes will not be issued for non-members",
8+
{ timeout: 10000 },
9+
async () => {
10+
const response = await fetch(
11+
`${baseEndpoint}/api/v1/mobileWallet/[email protected]`,
12+
{ method: "POST" },
13+
);
14+
expect(response.status).toBe(403);
15+
},
16+
);
17+
test(
18+
"Test that passes will be issued for members",
19+
{ timeout: 10000 },
20+
async () => {
21+
const response = await fetch(
22+
`${baseEndpoint}/api/v1/mobileWallet/[email protected]`,
23+
{ method: "POST" },
24+
);
25+
expect(response.status).toBe(202);
26+
},
27+
);
2028
});

0 commit comments

Comments
 (0)