integration test fixes
This commit is contained in:
parent
953cd9dc41
commit
e9864adf15
@ -1245,8 +1245,8 @@ export class WalletCli {
|
|||||||
throw new OperationFailedError(resp.error);
|
throw new OperationFailedError(resp.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
async runIntegrationtest(args: IntegrationTestArgs): Promise<void> {
|
async runIntegrationTest(args: IntegrationTestArgs): Promise<void> {
|
||||||
const resp = await this.apiRequest("runIntegrationtest", args);
|
const resp = await this.apiRequest("runIntegrationTest", args);
|
||||||
if (resp.type === "response") {
|
if (resp.type === "response") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ runTest(async (t: GlobalTestState) => {
|
|||||||
merchant,
|
merchant,
|
||||||
} = await createSimpleTestkudosEnvironment(t);
|
} = await createSimpleTestkudosEnvironment(t);
|
||||||
|
|
||||||
await wallet.runIntegrationtest({
|
await wallet.runIntegrationTest({
|
||||||
amountToSpend: "TESTKUDOS:5",
|
amountToSpend: "TESTKUDOS:5",
|
||||||
amountToWithdraw: "TESTKUDOS:10",
|
amountToWithdraw: "TESTKUDOS:10",
|
||||||
bankBaseUrl: bank.baseUrl,
|
bankBaseUrl: bank.baseUrl,
|
||||||
|
@ -938,7 +938,7 @@ export class Wallet {
|
|||||||
await this.withdrawTestBalance(req);
|
await this.withdrawTestBalance(req);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
case "runIntegrationtest": {
|
case "runIntegrationTest": {
|
||||||
const req = codecForIntegrationTestArgs().decode(payload);
|
const req = codecForIntegrationTestArgs().decode(payload);
|
||||||
await this.runIntegrationtest(req);
|
await this.runIntegrationtest(req);
|
||||||
return {}
|
return {}
|
||||||
|
Loading…
Reference in New Issue
Block a user