summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-18 21:16:21 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-18 21:16:21 +0200
commit29b4e71bf552cba3d93ed0de80a6fe1f6a6228a6 (patch)
treee1cc6a5a3c7657e89b8b9dde18fde4937464a495 /src/testing
parent6d7eb372b2cb30c0549fa1b76177bb7f5f28776c (diff)
downloadexchange-29b4e71bf552cba3d93ed0de80a6fe1f6a6228a6.tar.gz
exchange-29b4e71bf552cba3d93ed0de80a6fe1f6a6228a6.tar.bz2
exchange-29b4e71bf552cba3d93ed0de80a6fe1f6a6228a6.zip
-fix misc interesting wirewatch in test mode with sharding issues
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/test_taler_exchange_wirewatch.c15
-rw-r--r--src/testing/testing_api_cmd_exec_wirewatch.c2
2 files changed, 10 insertions, 7 deletions
diff --git a/src/testing/test_taler_exchange_wirewatch.c b/src/testing/test_taler_exchange_wirewatch.c
index d4149d7b..8477e628 100644
--- a/src/testing/test_taler_exchange_wirewatch.c
+++ b/src/testing/test_taler_exchange_wirewatch.c
@@ -196,9 +196,10 @@ main (int argc,
}
TALER_TESTING_cleanup_files (config_filename);
- if (GNUNET_OK != TALER_TESTING_prepare_exchange (config_filename,
- GNUNET_YES,
- &ec))
+ if (GNUNET_OK !=
+ TALER_TESTING_prepare_exchange (config_filename,
+ GNUNET_YES,
+ &ec))
{
TALER_LOG_INFO ("Could not prepare the exchange\n");
return 77;
@@ -210,10 +211,10 @@ main (int argc,
&bc))
return 77;
- return
- (GNUNET_OK == TALER_TESTING_setup_with_exchange (&run,
- NULL,
- config_filename)) ? 0 : 1;
+ return (GNUNET_OK ==
+ TALER_TESTING_setup_with_exchange (&run,
+ NULL,
+ config_filename)) ? 0 : 1;
}
diff --git a/src/testing/testing_api_cmd_exec_wirewatch.c b/src/testing/testing_api_cmd_exec_wirewatch.c
index eb6e1634..2c50b4f4 100644
--- a/src/testing/testing_api_cmd_exec_wirewatch.c
+++ b/src/testing/testing_api_cmd_exec_wirewatch.c
@@ -66,6 +66,8 @@ wirewatch_run (void *cls,
"taler-exchange-wirewatch",
"taler-exchange-wirewatch",
"-c", ws->config_filename,
+ "-S", "1",
+ "-w", "0",
"-t", /* exit when done */
NULL);
if (NULL == ws->wirewatch_proc)