Skip to content

Commit bf4f449

Browse files
committed
Fix free mode country cache test isolation
1 parent 0341a78 commit bf4f449

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

web/src/server/__tests__/free-mode-country.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const noAnonymousNetwork = {
1717
lookupIpPrivacy: async () => ({ signals: [] }),
1818
}
1919

20+
const IPINFO_PRIVACY_TEST_IP = '198.51.100.42'
21+
2022
describe('free mode country access', () => {
2123
test('allows allowlisted Cloudflare countries', async () => {
2224
const access = await getFreeModeCountryAccess(
@@ -151,7 +153,7 @@ describe('free mode country access', () => {
151153
})
152154

153155
const privacy = await lookupIpinfoPrivacy({
154-
ip: '203.0.113.10',
156+
ip: IPINFO_PRIVACY_TEST_IP,
155157
token: 'test-token',
156158
fetch: fetch as unknown as typeof globalThis.fetch,
157159
})

0 commit comments

Comments
 (0)