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
|
||||
}
|
||||
mainHandler.paymentManager.watchDog.Start()
|
||||
return { mainHandler, apps, liquidityProviderInfo, liquidityProviderApp, wizard }
|
||||
return { mainHandler, apps, liquidityProviderInfo, liquidityProviderApp, wizard, adminManager }
|
||||
}
|
||||
|
||||
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 { LiquidityProvider } from '../services/main/liquidityProvider.js'
|
||||
import { Utils } from '../services/helpers/utilsWrapper.js'
|
||||
import { AdminManager } from '../services/main/adminManager.js'
|
||||
chai.use(chaiString)
|
||||
export const expect = chai.expect
|
||||
export type Describe = (message: string, failure?: boolean) => void
|
||||
|
|
@ -30,6 +31,7 @@ export type TestBase = {
|
|||
externalAccessToMainLnd: LND
|
||||
externalAccessToOtherLnd: LND
|
||||
externalAccessToThirdLnd: LND
|
||||
adminManager: AdminManager
|
||||
d: Describe
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +65,8 @@ export const SetupTest = async (d: Describe): Promise<TestBase> => {
|
|||
expect, main, app,
|
||||
user1, user2,
|
||||
externalAccessToMainLnd, externalAccessToOtherLnd, externalAccessToThirdLnd,
|
||||
d
|
||||
d,
|
||||
adminManager: initialized.adminManager
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -72,6 +75,7 @@ export const teardown = async (T: TestBase) => {
|
|||
T.externalAccessToMainLnd.Stop()
|
||||
T.externalAccessToOtherLnd.Stop()
|
||||
T.externalAccessToThirdLnd.Stop()
|
||||
T.adminManager.Stop()
|
||||
resetDisabledLoggers()
|
||||
console.log("teardown")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue