fix(server): set reqeust-id on ClsModule setup (#9829)

This commit is contained in:
fengmk2
2025-01-21 10:15:37 +00:00
parent b6a8d644f8
commit 54dd131f4e
4 changed files with 8 additions and 18 deletions

View File

@@ -62,6 +62,8 @@ test('should init app', async t => {
t.is(config.type, 'Affine');
t.true(Array.isArray(config.features));
// make sure the request id is set
t.truthy(response.headers['x-request-id']);
});
test('should return 404 for unknown path', async t => {
@@ -76,4 +78,6 @@ test('should be able to call apis', async t => {
.expect(200);
t.is(res.body.flavor, 'graphql');
// make sure the request id is set
t.truthy(res.headers['x-request-id']);
});