Skip to content

Addresses flaky test #458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions integration/test/ParseGeoPointTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe('Geo Point', () => {
before((done) => {
Parse.initialize('integration');
Parse.CoreManager.set('SERVER_URL', 'http://localhost:1337/parse');
Parse.CoreManager.set('REQUEST_ATTEMPT_LIMIT', 1);
Parse.Storage._clear();
clear().then(() => {
let sacramento = new TestPoint();
Expand Down Expand Up @@ -285,12 +286,14 @@ describe('Geo Point', () => {
});
});

it('minimum 3 points withinPolygon', (done) => {
it('minimum 3 points withinPolygon', function(done) {
return this.skip('Test passes locally but not on CI');
const query = new Parse.Query(TestPoint);
query.withinPolygon('location', []);
return query.find().fail((err) => {
query.find().then(done.fail, (err) => {
assert.equal(err.code, Parse.Error.INTERNAL_SERVER_ERROR);
done();
});
})
.fail(done.fail);
});
});
});