mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
feat(core): Add health endpoint for task broker server (no-changelog) (#11920)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { setupBrokerTestServer } from '@test-integration/utils/task-broker-test-server';
|
||||
|
||||
describe('TaskRunnerServer', () => {
|
||||
const { agent, server } = setupBrokerTestServer({
|
||||
authToken: 'token',
|
||||
mode: 'external',
|
||||
});
|
||||
|
||||
beforeAll(async () => {
|
||||
await server.start();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await server.stop();
|
||||
});
|
||||
|
||||
describe('/healthz', () => {
|
||||
it('should return 200', async () => {
|
||||
await agent.get('/healthz').expect(200);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user