diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-23 07:51:49 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-23 07:51:49 +0000 |
commit | 1b29841f56357fbb35cf377f1fb951ce74a7ba2a (patch) | |
tree | ff1557979938332f8a88ec4923d4921d631201e2 /src/core/test_core_api_reliability.c | |
parent | b1867c09557112c6022664797c1f137a85574d6a (diff) | |
download | gnunet-1b29841f56357fbb35cf377f1fb951ce74a7ba2a.tar.gz gnunet-1b29841f56357fbb35cf377f1fb951ce74a7ba2a.zip |
how did this test ever work without assigning core handles?
Diffstat (limited to 'src/core/test_core_api_reliability.c')
-rw-r--r-- | src/core/test_core_api_reliability.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index e0db5eaed..c1945d01b 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c | |||
@@ -372,9 +372,9 @@ init_notify (void *cls, | |||
372 | GNUNET_assert (ok == 2); | 372 | GNUNET_assert (ok == 2); |
373 | OKPP; | 373 | OKPP; |
374 | /* connect p2 */ | 374 | /* connect p2 */ |
375 | GNUNET_CORE_connect (p2.cfg, &p2, &init_notify, &connect_notify, | 375 | GNUNET_assert (NULL != (p2.ch = GNUNET_CORE_connect (p2.cfg, &p2, &init_notify, &connect_notify, |
376 | &disconnect_notify, &inbound_notify, GNUNET_YES, | 376 | &disconnect_notify, &inbound_notify, GNUNET_YES, |
377 | &outbound_notify, GNUNET_YES, handlers); | 377 | &outbound_notify, GNUNET_YES, handlers))); |
378 | } | 378 | } |
379 | else | 379 | else |
380 | { | 380 | { |
@@ -439,9 +439,10 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
439 | setup_peer (&p2, "test_core_api_peer2.conf"); | 439 | setup_peer (&p2, "test_core_api_peer2.conf"); |
440 | err_task = | 440 | err_task = |
441 | GNUNET_SCHEDULER_add_delayed (TIMEOUT, &terminate_task_error, NULL); | 441 | GNUNET_SCHEDULER_add_delayed (TIMEOUT, &terminate_task_error, NULL); |
442 | GNUNET_CORE_connect (p1.cfg, &p1, &init_notify, &connect_notify, | 442 | |
443 | GNUNET_assert (NULL != (p1.ch = GNUNET_CORE_connect (p1.cfg, &p1, &init_notify, &connect_notify, | ||
443 | &disconnect_notify, &inbound_notify, GNUNET_YES, | 444 | &disconnect_notify, &inbound_notify, GNUNET_YES, |
444 | &outbound_notify, GNUNET_YES, handlers); | 445 | &outbound_notify, GNUNET_YES, handlers))); |
445 | } | 446 | } |
446 | 447 | ||
447 | 448 | ||