up
This commit is contained in:
parent
86c4e7f6c5
commit
b4a4ecc78d
2 changed files with 6 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ export const initMainHandler = async (log: PubLogger, mainSettings: MainSettings
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
mainHandler.paymentManager.watchDog.Start()
|
mainHandler.paymentManager.watchDog.Start()
|
||||||
return { mainHandler, apps, liquidityProviderInfo, liquidityProviderApp, wizard }
|
return { mainHandler, apps, liquidityProviderInfo, liquidityProviderApp, wizard, adminManager }
|
||||||
}
|
}
|
||||||
|
|
||||||
const processArgs = async (mainHandler: Main) => {
|
const processArgs = async (mainHandler: Main) => {
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ import LND from '../services/lnd/lnd.js'
|
||||||
import { getLogger, resetDisabledLoggers } from '../services/helpers/logger.js'
|
import { getLogger, resetDisabledLoggers } from '../services/helpers/logger.js'
|
||||||
import { LiquidityProvider } from '../services/main/liquidityProvider.js'
|
import { LiquidityProvider } from '../services/main/liquidityProvider.js'
|
||||||
import { Utils } from '../services/helpers/utilsWrapper.js'
|
import { Utils } from '../services/helpers/utilsWrapper.js'
|
||||||
|
import { AdminManager } from '../services/main/adminManager.js'
|
||||||
chai.use(chaiString)
|
chai.use(chaiString)
|
||||||
export const expect = chai.expect
|
export const expect = chai.expect
|
||||||
export type Describe = (message: string, failure?: boolean) => void
|
export type Describe = (message: string, failure?: boolean) => void
|
||||||
|
|
@ -30,6 +31,7 @@ export type TestBase = {
|
||||||
externalAccessToMainLnd: LND
|
externalAccessToMainLnd: LND
|
||||||
externalAccessToOtherLnd: LND
|
externalAccessToOtherLnd: LND
|
||||||
externalAccessToThirdLnd: LND
|
externalAccessToThirdLnd: LND
|
||||||
|
adminManager: AdminManager
|
||||||
d: Describe
|
d: Describe
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -63,7 +65,8 @@ export const SetupTest = async (d: Describe): Promise<TestBase> => {
|
||||||
expect, main, app,
|
expect, main, app,
|
||||||
user1, user2,
|
user1, user2,
|
||||||
externalAccessToMainLnd, externalAccessToOtherLnd, externalAccessToThirdLnd,
|
externalAccessToMainLnd, externalAccessToOtherLnd, externalAccessToThirdLnd,
|
||||||
d
|
d,
|
||||||
|
adminManager: initialized.adminManager
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -72,6 +75,7 @@ export const teardown = async (T: TestBase) => {
|
||||||
T.externalAccessToMainLnd.Stop()
|
T.externalAccessToMainLnd.Stop()
|
||||||
T.externalAccessToOtherLnd.Stop()
|
T.externalAccessToOtherLnd.Stop()
|
||||||
T.externalAccessToThirdLnd.Stop()
|
T.externalAccessToThirdLnd.Stop()
|
||||||
|
T.adminManager.Stop()
|
||||||
resetDisabledLoggers()
|
resetDisabledLoggers()
|
||||||
console.log("teardown")
|
console.log("teardown")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue