mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed one test.
This commit is contained in:
parent
db78c99ff4
commit
38ebfc2989
|
@ -16,7 +16,6 @@
|
|||
|
||||
#include "../testing/misc_tools.c" // hex_string_to_bin
|
||||
#include "../toxcore/Messenger.h"
|
||||
#include "../toxcore/Lossless_UDP.h"
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
@ -46,7 +45,7 @@ START_TEST(test_m_sendmesage)
|
|||
{
|
||||
char *message = "h-hi :3";
|
||||
int good_len = strlen(message);
|
||||
int bad_len = MAX_DATA_SIZE;
|
||||
int bad_len = MAX_CRYPTO_PACKET_SIZE;
|
||||
|
||||
|
||||
ck_assert(m_sendmessage(m, -1, (uint8_t *)message, good_len) == 0);
|
||||
|
@ -127,7 +126,7 @@ START_TEST(test_m_addfriend)
|
|||
|
||||
int good_len = strlen(good_data);
|
||||
int bad_len = strlen(bad_data);
|
||||
int really_bad_len = (MAX_DATA_SIZE - crypto_box_PUBLICKEYBYTES
|
||||
int really_bad_len = (MAX_CRYPTO_PACKET_SIZE - crypto_box_PUBLICKEYBYTES
|
||||
- crypto_box_NONCEBYTES - crypto_box_BOXZEROBYTES
|
||||
+ crypto_box_ZEROBYTES + 100); */
|
||||
/* TODO: Update this properly to latest master
|
||||
|
|
|
@ -1832,8 +1832,8 @@ void kill_messenger(Messenger *m)
|
|||
kill_onion(m->onion);
|
||||
kill_onion_announce(m->onion_a);
|
||||
kill_onion_client(m->onion_c);
|
||||
kill_DHT(m->dht);
|
||||
kill_net_crypto(m->net_crypto);
|
||||
kill_DHT(m->dht);
|
||||
kill_networking(m->net);
|
||||
free(m->friendlist);
|
||||
free(m);
|
||||
|
|
Loading…
Reference in New Issue
Block a user