diff options
Diffstat (limited to 'packages/taler-harness')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-kyc-skip-expiration.ts | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-kyc-skip-expiration.ts b/packages/taler-harness/src/integrationtests/test-kyc-skip-expiration.ts index 546111e79..b3405bf02 100644 --- a/packages/taler-harness/src/integrationtests/test-kyc-skip-expiration.ts +++ b/packages/taler-harness/src/integrationtests/test-kyc-skip-expiration.ts @@ -63,7 +63,6 @@ export const AML_PROGRAM_FROM_ATTRIBUTES_TO_CONTEXT: TalerKycAml.AmlProgramDefin custom_measures: { ask_more_info: { context: { - info: _input?.attributes, // this is the context info that the KYC-SPA will see WAT: "REALLY?", }, @@ -255,6 +254,9 @@ export async function runKycSkipExpirationTest(t: GlobalTestState) { t.assertDeepEqual(decisionsResp.status, 200); } + // Make sure that there can be another decision + await waitMs(2000); + // Wait for the KYC program to run while (true) { const infoResp = await harnessHttpLib.fetch( @@ -266,6 +268,16 @@ export async function runKycSkipExpirationTest(t: GlobalTestState) { await waitMs(1000); continue; } + // KYC program still busy. + // In the future, this should long-poll. + if (infoResp.status == 204) { + await waitMs(1000); + continue; + } + + const respJson = await infoResp.json(); + console.log(j2s(respJson)); + t.assertDeepEqual(infoResp.status, 200); const clientInfo = await readResponseJsonOrThrow( @@ -277,8 +289,6 @@ export async function runKycSkipExpirationTest(t: GlobalTestState) { // Finally here we must see the officer defined form t.assertDeepEqual(clientInfo?.requirements[0].context, { - // info contains the properties in the aml decision - info: { form: { name: "string" } }, // this is fixed by the aml program WAT: "REALLY?", }); |