Skip to content

Commit 041bd09

Browse files
committed
remove localhost
1 parent 5ef2f0f commit 041bd09

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

integration/test/ParseDistTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ for (const fileName of ['parse.js', 'parse.min.js']) {
44
beforeAll(async () => {
55
const browser = await puppeteer.launch();
66
page = await browser.newPage();
7-
await page.goto(`http://localhost:1337/${fileName}`);
7+
await page.goto(`http://127.0.0.1:1337/${fileName}`);
88
});
99
describe(`Parse Dist Test ${fileName}`, () => {
1010
it('can save an object', async () => {

integration/test/ParseLiveQueryTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('Parse LiveQuery', () => {
5353
it('can subscribe to query with null connect fields', async done => {
5454
const client = new Parse.LiveQueryClient({
5555
applicationId: 'integration',
56-
serverURL: 'ws://localhost:1337',
56+
serverURL: 'ws://127.0.0.1:1337',
5757
javascriptKey: null,
5858
masterKey: null,
5959
sessionToken: null,

integration/test/clear.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ const Parse = require('../../node');
88
* @returns {Promise} A promise that is resolved when database is deleted.
99
*/
1010
module.exports = function (fast = true) {
11-
return Parse._ajax('GET', `http://localhost:1337/clear/${fast}`, '');
11+
return Parse._ajax('GET', `http://127.0.0.1:1337/clear/${fast}`, '');
1212
};

integration/test/helper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const path = require('path');
1313

1414
const port = 1337;
1515
const mountPath = '/parse';
16-
const serverURL = 'http://localhost:1337/parse';
16+
const serverURL = 'http://127.0.0.1:1337/parse';
1717
let didChangeConfiguration = false;
1818

1919
/*
@@ -33,7 +33,7 @@ const twitterAuthData = {
3333
};
3434

3535
const defaultConfiguration = {
36-
databaseURI: 'mongodb://localhost:27017/integration',
36+
databaseURI: 'mongodb://127.0.0.1:27017/integration',
3737
appId: 'integration',
3838
masterKey: 'notsosecret',
3939
serverURL,
@@ -130,7 +130,7 @@ const reconfigureServer = (changedConfiguration = {}) => {
130130
<script>
131131
(function() {
132132
Parse.initialize('integration');
133-
Parse.serverURL = 'http://localhost:1337/parse';
133+
Parse.serverURL = 'http://127.0.0.1:1337/parse';
134134
})();
135135
</script>
136136
</head>

0 commit comments

Comments
 (0)