summaryrefslogtreecommitdiff
path: root/src/backenddb/test_merchantdb.c
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2023-02-21 07:20:09 -0500
committerpriscilla <priscilla.huang@efrei.net>2023-02-21 07:20:09 -0500
commit90c821d0575383a650c96c37c48b6f346b66ef4f (patch)
treef6c5691cbd8ca1c8ca85c1e48873cb894b0e4900 /src/backenddb/test_merchantdb.c
parentc1976d63028260964cf0eda49ab7b6892e23c647 (diff)
downloadmerchant-90c821d0575383a650c96c37c48b6f346b66ef4f.tar.gz
merchant-90c821d0575383a650c96c37c48b6f346b66ef4f.tar.bz2
merchant-90c821d0575383a650c96c37c48b6f346b66ef4f.zip
added alter table for merchant order and merchant contract terms
Diffstat (limited to 'src/backenddb/test_merchantdb.c')
-rw-r--r--src/backenddb/test_merchantdb.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
index 5a84e8b2..82710fe4 100644
--- a/src/backenddb/test_merchantdb.c
+++ b/src/backenddb/test_merchantdb.c
@@ -1363,7 +1363,9 @@ test_insert_order (const struct InstanceData *instance,
&h_post,
order->pay_deadline,
&order->claim_token,
- order->contract),
+ order->contract,
+ NULL,
+ 0),
"Insert order failed\n");
return 0;
}
@@ -1394,7 +1396,9 @@ test_lookup_order (const struct InstanceData *instance,
order->id,
&ct,
&oh,
- &lookup_terms))
+ &lookup_terms,
+ NULL,
+ 0))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Lookup order failed\n");
@@ -1652,7 +1656,9 @@ test_insert_contract_terms (const struct InstanceData *instance,
instance->instance.id,
order->id,
order->contract,
- &os),
+ &os,
+ NULL,
+ 0),
"Insert contract terms failed\n");
return 0;
}
@@ -1703,7 +1709,9 @@ test_lookup_contract_terms (const struct InstanceData *instance,
&contract,
&order_serial,
&paid,
- NULL))
+ NULL,
+ NULL,
+ 0))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Lookup contract terms failed\n");
@@ -2034,7 +2042,9 @@ run_test_orders (struct TestOrders_Closure *cls)
cls->orders[1].id,
NULL,
&unused,
- NULL))
+ NULL,
+ NULL,
+ 0))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Lookup order failed\n");
@@ -2089,7 +2099,9 @@ run_test_orders (struct TestOrders_Closure *cls)
&lookup_contract,
&lookup_order_serial,
&paid,
- NULL))
+ NULL,
+ NULL,
+ 0))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Lookup contract terms failed\n");