Skip to content

Commit 7de0792

Browse files
committed
Try/catch teardown until integration testing is updated
1 parent ade4baa commit 7de0792

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

integrationTests/components/early-hints.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ suite('Component: early-hints', (ctx: ContextWithHarper) => {
5858
});
5959

6060
after(async () => {
61-
await teardownHarper(ctx);
61+
try {
62+
await teardownHarper(ctx);
63+
} catch (error) {
64+
// until https://github.com/HarperFast/integration-testing/pull/6 is merged
65+
console.error(error);
66+
}
6267
});
6368

6469
test('missing q param returns 400', async () => {

integrationTests/components/redirector.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ suite('Component: redirector', (ctx: ContextWithHarper) => {
6969
});
7070

7171
after(async () => {
72-
await teardownHarper(ctx);
72+
try {
73+
await teardownHarper(ctx);
74+
} catch (error) {
75+
// until https://github.com/HarperFast/integration-testing/pull/6 is merged
76+
console.error(error);
77+
}
7378
});
7479

7580
test('query param lookup returns correct redirect', async () => {

integrationTests/components/risk-query.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ suite('Component: risk-query', (ctx: ContextWithHarper) => {
3737
});
3838

3939
after(async () => {
40-
await teardownHarper(ctx);
40+
try {
41+
await teardownHarper(ctx);
42+
} catch (error) {
43+
// until https://github.com/HarperFast/integration-testing/pull/6 is merged
44+
console.error(error);
45+
}
4146
});
4247

4348
test('insert via PUT /risq with shorthand fields', async () => {

0 commit comments

Comments
 (0)