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:
@@ -163,7 +163,8 @@ describe('server', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('can report the server version', done => {
|
||||
it('can report the server version', async done => {
|
||||
await reconfigureServer();
|
||||
request({
|
||||
url: 'http://localhost:8378/1/serverInfo',
|
||||
headers: {
|
||||
@@ -177,7 +178,8 @@ describe('server', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('can properly sets the push support', done => {
|
||||
it('can properly sets the push support', async done => {
|
||||
await reconfigureServer();
|
||||
// default config passes push options
|
||||
const config = Config.get('test');
|
||||
expect(config.hasPushSupport).toEqual(true);
|
||||
|
||||
Reference in New Issue
Block a user