From 47d5f59169a67ae4c37b21a00d36f125c5bf76e5 Mon Sep 17 00:00:00 2001 From: Daniel Bankhead Date: Tue, 10 Oct 2023 18:19:27 -0700 Subject: [PATCH] test: use `teeny-request` as replacement default --- test.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test.js b/test.js index 2543954..4957655 100644 --- a/test.js +++ b/test.js @@ -5,12 +5,15 @@ const async = require('async'); const range = require('lodash.range'); const {describe, it, beforeEach} = require('mocha'); const {PassThrough} = require('stream'); +const {teenyRequest} = require('teeny-request'); const retryRequest = require('./index.js'); +retryRequest.defaults.request = teenyRequest.defaults(); + describe('retry-request', () => { - const URI_404 = 'http://yahoo.com/theblahstore'; - const URI_200 = 'http://yahoo.com/'; + const URI_404 = 'http://google.com/theblahstore'; + const URI_200 = 'http://google.com/'; const URI_NON_EXISTENT = 'http://theblahstore'; describe('streams', () => {