Skip to content

Commit daddba8

Browse files
committed
remove unnecessary SIGTERM methods
1 parent 2d13751 commit daddba8

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

  • test/node/features/fixtures/hono/scenarios

test/node/features/fixtures/hono/scenarios/app.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ app.get('/rejection-async', (c) => {
4848
}, 100)
4949
})
5050

51-
// This route does not work with local testing, not sure why it's running here
52-
app.get('/throw-non-error', async (c, next) => {
51+
app.get('/throw-non-error', async (c) => {
5352
throw 1
5453
})
5554

@@ -64,12 +63,3 @@ serve({
6463
fetch: app.fetch,
6564
port: 80
6665
});
67-
68-
// Keep the process alive
69-
process.on('SIGTERM', () => {
70-
process.exit(0)
71-
})
72-
73-
process.on('SIGINT', () => {
74-
process.exit(0)
75-
})

0 commit comments

Comments
 (0)