Skip to content

Commit e8515c7

Browse files
committed
More reconfiguration
1 parent aafbdd7 commit e8515c7

8 files changed

+250
-226
lines changed

spec/EnableSingleSchemaCache.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ describe('Enable single schema cache', () => {
1212
});
1313
});
1414

15+
afterAll(async () => {
16+
await reconfigureServer();
17+
});
18+
1519
it('can perform multiple create and query operations', done => {
1620
let config = fakeRequestForConfig();
1721
let nobody = auth.nobody(config);

spec/FilesController.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('FilesController', () => {
5555
)
5656
.then(() => new Promise(resolve => setTimeout(resolve, 200)))
5757
.then(() => logController.getLogs({ from: Date.now() - 1000, size: 1000 }))
58-
.then(logs => {
58+
.then(async logs => {
5959
// we get two logs here: 1. the source of the failure to save the file
6060
// and 2 the message that will be sent back to the client.
6161

@@ -66,6 +66,7 @@ describe('FilesController', () => {
6666
expect(log2.level).toBe('error');
6767
expect(log2.code).toBe(130);
6868

69+
await reconfigureServer();
6970
done();
7071
});
7172
});

spec/GridFSBucketStorageAdapter.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ describe_only_db('mongo')('GridFSBucket and GridStore interop', () => {
392392
});
393393
fileData = response.data;
394394
expect(fileData.metadata).toEqual(metadata);
395+
await reconfigureServer();
395396
});
396397

397398
it('should handle getMetadata error', async () => {

spec/Idempotency.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ describe_only_db('mongo')('Idempotency', () => {
4141
ttl: 30,
4242
});
4343
});
44+
45+
afterAll(async () => {
46+
await reconfigureServer();
47+
});
4448
// Tests
4549
it('should enforce idempotency for cloud code function', async () => {
4650
let counter = 0;

0 commit comments

Comments
 (0)