summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-15 20:08:38 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-15 20:08:38 +0100
commit4322bbf2f1722b4c53114901768772dabdb7e822 (patch)
treee2193282c2d179f2d3bdf32eb7aca7a6ba161f25 /src/testing
parentd7cfb11fc6a171ece9c233d67ec849ac391bc818 (diff)
downloadexchange-4322bbf2f1722b4c53114901768772dabdb7e822.tar.gz
exchange-4322bbf2f1722b4c53114901768772dabdb7e822.tar.bz2
exchange-4322bbf2f1722b4c53114901768772dabdb7e822.zip
move common logic to parse currency into libtalerutil
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_loop.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c
index 5f30f71e..1053e6f7 100644
--- a/src/testing/testing_api_loop.c
+++ b/src/testing/testing_api_loop.c
@@ -127,24 +127,9 @@ TALER_TESTING_run_with_fakebank (struct TALER_TESTING_Interpreter *is,
char *currency;
if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_string (is->cfg,
- "taler",
- "CURRENCY",
- &currency))
- {
- GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
- "taler",
- "CURRENCY");
- is->result = GNUNET_SYSERR;
- return;
- }
- if (strlen (currency) >= TALER_CURRENCY_LEN)
+ TALER_config_get_currency (is->cfg,
+ &currency))
{
- GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
- "taler",
- "CURRENCY",
- "Value is too long");
- GNUNET_free (currency);
is->result = GNUNET_SYSERR;
return;
}