Răsfoiți Sursa

fix(elasticsearch): clarify description of SocketIoService in tests

Ryu Sato 1 săptămână în urmă
părinte
comite
a6a5d87663

+ 2 - 2
apps/app/src/server/service/search-delegator/elasticsearch.integ.ts

@@ -23,10 +23,10 @@ describe.skipIf(!hasElasticsearch)(
         delete process.env.ELASTICSEARCH_REINDEX_ON_BOOT;
         delete process.env.ELASTICSEARCH_REINDEX_ON_BOOT;
       });
       });
 
 
-      describe('with a SocketIoService attached to an HTTP server', () => {
+      describe('with a SocketIoService with an attached dummy HTTP server', () => {
         it('should invoke rebuildIndex and complete without error', async () => {
         it('should invoke rebuildIndex and complete without error', async () => {
           // arrange
           // arrange
-          const crowi = await getInstance();
+          const crowi = await getInstance(); // attached SocketIoService with dummy server in setupCrowi.ts
           const delegator = new ElasticsearchDelegator(crowi.socketIoService);
           const delegator = new ElasticsearchDelegator(crowi.socketIoService);
           type WithRebuildIndex = {
           type WithRebuildIndex = {
             rebuildIndex: (option?: RebuildIndexOption) => Promise<void>;
             rebuildIndex: (option?: RebuildIndexOption) => Promise<void>;