localhost -> 127.0.0.1 to avoid offline issues
This commit is contained in:
Родитель
c0b4a5e265
Коммит
de2cd6108b
|
@ -216,7 +216,7 @@ suite('WebKitDebugAdapter', () => {
|
|||
});
|
||||
|
||||
function attach(wkda: _WebKitDebugAdapter): Promise<void> {
|
||||
return wkda.attach({ address: 'localhost', 'port': 9222 });
|
||||
return wkda.attach({ address: '127.0.0.1', 'port': 9222 });
|
||||
}
|
||||
|
||||
class DefaultMockWebKitConnection {
|
||||
|
|
|
@ -128,7 +128,7 @@ export class WebKitConnection {
|
|||
}
|
||||
|
||||
public _attach(port: number): Promise<void> {
|
||||
return Utilities.retryAsync(() => getUrl(`http://localhost:${port}/json`), 7)
|
||||
return Utilities.retryAsync(() => getUrl(`http://127.0.0.1:${port}/json`), 7)
|
||||
.then(jsonResponse => {
|
||||
const pages = JSON.parse(jsonResponse).filter(target => target.type === 'page');
|
||||
if (!pages.length) return Promise.reject('No valid pages found');
|
||||
|
|
Загрузка…
Ссылка в новой задаче