Configure Sandbox before tests
This commit is contained in:
parent
a4bfce6e93
commit
375b3af7e8
@ -201,6 +201,15 @@ export class LibeufinSandboxService implements LibeufinSandboxServiceInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async start(): Promise<void> {
|
async start(): Promise<void> {
|
||||||
|
const stdout = await sh(
|
||||||
|
this.globalTestState,
|
||||||
|
"libeufin-sandbox-config",
|
||||||
|
"libeufin-sandbox config localhost",
|
||||||
|
{
|
||||||
|
...process.env,
|
||||||
|
LIBEUFIN_SANDBOX_DB_CONNECTION: this.sandboxConfig.databaseJdbcUri,
|
||||||
|
},
|
||||||
|
);
|
||||||
this.sandboxProc = this.globalTestState.spawnService(
|
this.sandboxProc = this.globalTestState.spawnService(
|
||||||
"libeufin-sandbox",
|
"libeufin-sandbox",
|
||||||
["serve", "--port", `${this.sandboxConfig.httpPort}`],
|
["serve", "--port", `${this.sandboxConfig.httpPort}`],
|
||||||
|
Loading…
Reference in New Issue
Block a user