summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-03 11:53:52 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-03 11:53:52 +0100
commit3c9d0e7b78014d448d7be0bbee3c1e83e9baa473 (patch)
treecbbac337ab7ba01858c04c5b9dbb2e62c09f5073 /src/testing
parented0a15461984c963d25478d820feb2827f7886a1 (diff)
downloadmerchant-3c9d0e7b78014d448d7be0bbee3c1e83e9baa473.tar.gz
merchant-3c9d0e7b78014d448d7be0bbee3c1e83e9baa473.tar.bz2
merchant-3c9d0e7b78014d448d7be0bbee3c1e83e9baa473.zip
implement #8357
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_get_otp_device.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/testing/testing_api_cmd_get_otp_device.c b/src/testing/testing_api_cmd_get_otp_device.c
index 272039af..3f086529 100644
--- a/src/testing/testing_api_cmd_get_otp_device.c
+++ b/src/testing/testing_api_cmd_get_otp_device.c
@@ -102,7 +102,7 @@ get_otp_device_cb (void *cls,
gis->otp_device_reference);
if (GNUNET_OK !=
TALER_TESTING_get_trait_otp_device_description (otp_device_cmd,
- &expected_description))
+ &expected_description))
TALER_TESTING_interpreter_fail (gis->is);
if (0 != strcmp (tgr->details.ok.otp_device_description,
expected_description))
@@ -113,27 +113,6 @@ get_otp_device_cb (void *cls,
return;
}
}
- {
- const char *expected_otp_key;
-
- if (GNUNET_OK !=
- TALER_TESTING_get_trait_otp_key (otp_device_cmd,
- &expected_otp_key))
- TALER_TESTING_interpreter_fail (gis->is);
- if ( ( (NULL == tgr->details.ok.otp_key) && (NULL != expected_otp_key)) ||
- ( (NULL != tgr->details.ok.otp_key) && (NULL == expected_otp_key)) ||
- ( (NULL != tgr->details.ok.otp_key) &&
- (0 != strcmp (tgr->details.ok.otp_key,
- expected_otp_key)) ) )
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "OtpDevice otp_key `%s' does not match `%s'\n",
- tgr->details.ok.otp_key,
- expected_otp_key);
- TALER_TESTING_interpreter_fail (gis->is);
- return;
- }
- }
break;
case MHD_HTTP_UNAUTHORIZED:
break;