diff --git a/packages/core/server/src/__tests__/sync-message-manager.test.ts b/packages/core/server/src/__tests__/sync-message-manager.test.ts index 0fef6d7afd..6d1426c2a1 100644 --- a/packages/core/server/src/__tests__/sync-message-manager.test.ts +++ b/packages/core/server/src/__tests__/sync-message-manager.test.ts @@ -89,7 +89,6 @@ describe('sync-message-manager', () => { await app2.pm.get(MyPlugin).sendSyncMessage('message2'); expect(mockListener).toBeCalledTimes(2); expect(mockListener).toHaveBeenCalledWith('message2'); - await app1.destroy(); - await app2.destroy(); + await cluster.destroy(); }); });