ci: fix config generation

This commit is contained in:
undefined committed 2022-10-04 23:11:14 +08:00
1 parent 6cea9eb51c
commit c6796a3a2b
4 files changed
+7 -5

No files matched your search

+1 -2
View File
@@ -2,7 +2,6 @@ import assert from 'assert';
import autocannon from 'autocannon';
import { writeFileSync } from 'fs-extra';
import * as supertest from 'supertest';
import * as bus from 'hydrooj/src/service/bus';
const Root = {
username: 'root',
@@ -17,7 +16,7 @@ describe('App', () => {
let timeout;
const resolve = () => setTimeout(() => {
clearTimeout(timeout);
agent = supertest.agent(require('hydrooj/src/service/server').httpServer);
agent = supertest.agent(require('hydrooj').httpServer);
done();
}, 2000);
process.send = ((send) => (data) => {