Allow single server instance in test suite (#7262)

* initial pass

* reconfigureServer when needed

* finish postgres tests

* mongo tests

* more tests

* clean up

* re-add skipped test

* Fix transaction tests

* handle batch

* AuthenticationAdapter fix

* More reconfiguration

* clean up

* properly terminate cli servers

* handle Parse.Push

* Flaky PushController

* ensure reconfigureServer when changed

* fix postgres tests

* remove console.log

* LiveQuery spec remove duplicates and listeners
This commit is contained in:
Diamond Lewis
2021-03-13 09:05:22 -06:00
committed by GitHub
parent 8b0e8cd02c
commit 9563793303
36 changed files with 941 additions and 1020 deletions

View File

@@ -18,6 +18,10 @@ const masterKeyOptions = {
headers: masterKeyHeaders,
};
const BoxedNumber = Parse.Object.extend({
className: 'BoxedNumber',
});
describe('Parse.Query testing', () => {
it('basic query', function (done) {
const baz = new TestObject({ foo: 'baz' });
@@ -933,10 +937,6 @@ describe('Parse.Query testing', () => {
});
});
const BoxedNumber = Parse.Object.extend({
className: 'BoxedNumber',
});
it('equalTo queries', function (done) {
const makeBoxedNumber = function (i) {
return new BoxedNumber({ number: i });
@@ -2927,10 +2927,10 @@ describe('Parse.Query testing', () => {
const saves = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map(function (x) {
const obj = new Parse.Object('TestObject');
obj.set('x', x + 1);
return obj.save();
return obj;
});
Promise.all(saves)
Parse.Object.saveAll(saves)
.then(function () {
const query = new Parse.Query('TestObject');
query.ascending('x');