Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Feb 9, 2025
1 parent 5a94cf0 commit d6fcb21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/issue-3959.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ 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')
const SqliteCacheStore = require('../lib/cache/sqlite-cache-store.js')
const { request, Agent, setGlobalDispatcher } = require('..')
const { interceptors } = require('..')

Expand Down Expand Up @@ -57,7 +56,8 @@ describe('Cache with Vary headers', () => {
await runCacheTest(new MemoryCacheStore())
})

test('should cache response with SqliteCacheStore when Vary header exists but request header is missing', async () => {
test('should cache response with SqliteCacheStore when Vary header exists but request header is missing', { skip: process.versions.node < '22' }, async () => {
const SqliteCacheStore = require('../lib/cache/sqlite-cache-store.js')
const sqliteStore = new SqliteCacheStore()
await runCacheTest(sqliteStore)
after(() => sqliteStore.close())
Expand Down

0 comments on commit d6fcb21

Please sign in to comment.