Skip to content

Commit

Permalink
test: fix stream abort test for Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
usualoma committed Jul 2, 2024
1 parent de7c5e9 commit c90c662
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions runtime_tests/node/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ describe('stream', () => {

const server = createAdaptorServer(app)

beforeEach(() => {
aborted = false
})

it('Should call onAbort', async () => {
const req = request(server)
.get('/stream')
Expand Down Expand Up @@ -173,6 +177,10 @@ describe('streamSSE', () => {

const server = createAdaptorServer(app)

beforeEach(() => {
aborted = false
})

it('Should call onAbort', async () => {
const req = request(server)
.get('/stream')
Expand Down

0 comments on commit c90c662

Please sign in to comment.