diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-19 20:56:10 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-19 20:56:40 +0530 |
commit | d9b73a30c1ce67f611f9d605bdf163c3e868f2c2 (patch) | |
tree | ffdbf9d5e1556df5d1a57a8870fa8057c7ba4ef5 /packages/taler-integrationtests/src/test-merchant-longpolling.ts | |
parent | 082498b20d2a73009bb4193cd95ab409159fb972 (diff) | |
download | wallet-core-d9b73a30c1ce67f611f9d605bdf163c3e868f2c2.tar.xz |
test case for /paid API, implement fault-injected merchant
Diffstat (limited to 'packages/taler-integrationtests/src/test-merchant-longpolling.ts')
-rw-r--r-- | packages/taler-integrationtests/src/test-merchant-longpolling.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-integrationtests/src/test-merchant-longpolling.ts b/packages/taler-integrationtests/src/test-merchant-longpolling.ts index 664926c09..1470cadfe 100644 --- a/packages/taler-integrationtests/src/test-merchant-longpolling.ts +++ b/packages/taler-integrationtests/src/test-merchant-longpolling.ts @@ -17,7 +17,7 @@ /** * Imports. */ -import { runTest, GlobalTestState } from "./harness"; +import { runTest, GlobalTestState, MerchantPrivateApi } from "./harness"; import { createSimpleTestkudosEnvironment, withdrawViaBank } from "./helpers"; import { PreparePayResultType, @@ -53,7 +53,7 @@ runTest(async (t: GlobalTestState) => { * ========================================================================= */ - let orderResp = await merchant.createOrder("default", { + let orderResp = await MerchantPrivateApi.createOrder(merchant, "default", { order: { summary: "Buy me!", amount: "TESTKUDOS:5", @@ -63,7 +63,7 @@ runTest(async (t: GlobalTestState) => { const firstOrderId = orderResp.order_id; - let orderStatus = await merchant.queryPrivateOrderStatus({ + let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, { orderId: orderResp.order_id, sessionId: "mysession-one", }); |