fix: harden multi-instance scheduler and worker execution
This commit is contained in:
1 parent
df7dcd3a9c
commit
60a006008a
23 files changed
+1442
-299
No files matched your search
@@ -42,4 +42,21 @@ describe('resolveMongoConnectionOptions', () => {
|
||||
autoCreate: false,
|
||||
});
|
||||
});
|
||||
|
||||
it('enables automatic index creation when explicitly requested', () => {
|
||||
expect(
|
||||
resolveMongoConnectionOptions(
|
||||
'lolympus-staging',
|
||||
'lolympus-api:staging:1',
|
||||
'true',
|
||||
),
|
||||
).toEqual({
|
||||
dbName: 'lolympus-staging',
|
||||
appName: 'lolympus-api:staging:1',
|
||||
minPoolSize: 10,
|
||||
maxPoolSize: 20,
|
||||
autoIndex: true,
|
||||
autoCreate: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user