fix: Parse Server doesn't shutdown gracefully (#9634)

This commit is contained in:
Diamond Lewis
2025-03-27 15:38:51 -05:00
committed by GitHub
parent f55de2b342
commit aed918d310
19 changed files with 308 additions and 240 deletions

View File

@@ -62,6 +62,7 @@ describe('server', () => {
});
it('fails if database is unreachable', async () => {
spyOn(console, 'error').and.callFake(() => {});
const server = new ParseServer.default({
...defaultConfiguration,
databaseAdapter: new MongoStorageAdapter({
@@ -145,7 +146,7 @@ describe('server', () => {
},
publicServerURL: 'http://localhost:8378/1',
};
expectAsync(reconfigureServer(options)).toBeRejected('MockMailAdapterConstructor');
await expectAsync(reconfigureServer(options)).toBeRejected('MockMailAdapterConstructor');
});
});