Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: fix buffer-get test timeout
Replace external URL with mock server endpoint to prevent test timeout.
The test was trying to fetch from http://example.com which is not mocked,
causing it to timeout. Now uses http://rsshub.test/headers which is
properly mocked in the test setup.
  • Loading branch information
DzmingLi committed Dec 8, 2025
commit eb0a98b9b0778d3bf102b7cfff374fac77782229
2 changes: 1 addition & 1 deletion lib/utils/got.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('got', () => {
});

it('buffer-get', async () => {
const response = await got.get('http://example.com', {
const response = await got.get('http://rsshub.test/headers', {
responseType: 'buffer',
});
expect(response.body instanceof Buffer).toBe(true);
Expand Down