Taichi Masuyama пре 4 година
родитељ
комит
e1cc89d852
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      packages/app/test/integration/setup-crowi.js

+ 3 - 0
packages/app/test/integration/setup-crowi.js

@@ -1,3 +1,5 @@
+import { Server } from 'http';
+
 import Crowi from '~/server/crowi';
 import Crowi from '~/server/crowi';
 
 
 let _instance = null;
 let _instance = null;
@@ -7,6 +9,7 @@ const initCrowi = async(crowi) => {
   await crowi.setupConfigManager();
   await crowi.setupConfigManager();
 
 
   await crowi.setupSocketIoService();
   await crowi.setupSocketIoService();
+  await crowi.socketIoService.attachServer(new Server()); // attach dummy server
 
 
   await Promise.all([
   await Promise.all([
     crowi.setUpApp(),
     crowi.setUpApp(),