diff --git a/tests/functional/fake-amo-server.js b/tests/functional/fake-amo-server.js index ac6beae6a6..ae156e0a58 100755 --- a/tests/functional/fake-amo-server.js +++ b/tests/functional/fake-amo-server.js @@ -4,6 +4,7 @@ // - http://addons-server.readthedocs.io/en/latest/topics/api/signing.html import http from 'http'; +import os from 'os'; const FAKE_REPLIES = [ // Upload responses, see https://addons-server.readthedocs.io/en/latest/topics/api/addons.html#upload-detail-object @@ -89,7 +90,7 @@ http process.exit(1); } }) - .listen(8989, '127.0.0.1', () => { + .listen(8989, os.platform() === 'win32' ? '::1': '127.0.0.1', () => { process.stdout.write('listening'); process.stdout.uncork(); });