chore: update port to 4000 in tests and compose
This commit is contained in:
1 parent
66fb92e5af
commit
ad7747bfd4
6 files changed
+26
-26
No files matched your search
+2
-2
@@ -19,7 +19,7 @@ describe('Health Route Handler', () => {
|
||||
});
|
||||
|
||||
it('should return status 200 and ok when DB is healthy', async () => {
|
||||
const req = new Request('http://localhost:3000/health');
|
||||
const req = new Request('http://localhost:4000/health');
|
||||
const res = await handleHealth(req);
|
||||
|
||||
expect(res.status).toBe(200);
|
||||
@@ -30,7 +30,7 @@ describe('Health Route Handler', () => {
|
||||
|
||||
it('should return status 500 and error details when DB health check fails', async () => {
|
||||
mockExecute.mockImplementationOnce(() => Promise.reject(new Error('DB Connection Failed')));
|
||||
const req = new Request('http://localhost:3000/health');
|
||||
const req = new Request('http://localhost:4000/health');
|
||||
const res = await handleHealth(req);
|
||||
|
||||
expect(res.status).toBe(500);
|
||||
|
||||
Reference in new issue
Block a user