Skip to content

Commit

Permalink
chore: tweak fake-amo-server to listen on ipv6 localhost on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rpl committed Jan 12, 2024
1 parent 2cb0700 commit b9c063a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/functional/fake-amo-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
});

0 comments on commit b9c063a

Please sign in to comment.