mirror of
https://github.com/NikolaiT/se-scraper.git
synced 2025-03-13 12:38:16 +01:00
test(proxy): fix raise random condition error on first test
This commit is contained in:
parent
70753021c4
commit
5e5e265ce3
@ -21,7 +21,7 @@ fakeSearchEngine.set('trust proxy', 'loopback');
|
||||
fakeSearchEngine.get('/test-proxy', (req, res) => {
|
||||
debug('fake-search-engine req.hostname=%s', req.hostname);
|
||||
//debug('req to', req.socket.localAddress, req.socket.localPort);
|
||||
res.send(req.hostname);
|
||||
setTimeout(() => res.send(req.hostname), 100); // Add timeout here because raise condition for first test
|
||||
});
|
||||
|
||||
describe('Config', function(){
|
||||
|
Loading…
Reference in New Issue
Block a user