Migrate instances when draining and verify hosts before enabling
This commit is contained in:
@@ -218,7 +218,7 @@ describe('asynchronous native launch preparation', () => {
|
||||
expect(await operationFor(second.deploymentId)).toBeUndefined();
|
||||
});
|
||||
|
||||
it('keeps a prepared launch queued if its host is disabled before dispatch', async () => {
|
||||
it('keeps a prepared launch queued while its host is disabled or re-enabling', async () => {
|
||||
const job = await queue();
|
||||
const paused = await pausePreparation();
|
||||
const pass = runPass();
|
||||
@@ -228,9 +228,9 @@ describe('asynchronous native launch preparation', () => {
|
||||
paused.release();
|
||||
await pass;
|
||||
expect(await operationFor(job.deploymentId)).toBeUndefined();
|
||||
updateHost(hostId, { mode: 'active' });
|
||||
expect(updateHost(hostId, { mode: 'active' })).toMatchObject({ mode: 'disabled', readiness: 'preparing' });
|
||||
await runPass();
|
||||
expect(await operationFor(job.deploymentId)).toBeDefined();
|
||||
expect(await operationFor(job.deploymentId)).toBeUndefined();
|
||||
});
|
||||
|
||||
it('rechecks a reduced startup limit before submitting prepared files', async () => {
|
||||
|
||||
Reference in New Issue
Block a user