Skip to content

Commit

Permalink
use after
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Jan 28, 2025
1 parent b4bf762 commit 2fbfa5c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/issue-3959.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'use strict'

const { describe, test } = require('node:test')
const { describe, test, after } = require('node:test')
const assert = require('node:assert')
const { createServer } = require('node:http')
const MemoryCacheStore = require('../lib/cache/memory-cache-store.js')
Expand Down Expand Up @@ -52,6 +50,6 @@ describe('Cache with Vary headers', () => {
assert.strictEqual(body3, 'Request count: 2')
assert.strictEqual(requestCount, 2)

await new Promise(resolve => server.close(resolve))
after(() => server.close())
})
})

0 comments on commit 2fbfa5c

Please sign in to comment.