diff --git a/test/proxy.js b/test/proxy.js index c1092ea..209d782 100644 --- a/test/proxy.js +++ b/test/proxy.js @@ -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(){