mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-20 13:06:20 +02:00
check-spaces fixes for test_router.c
This commit is contained in:
parent
696b484d4d
commit
8db8fda43f
@ -11,22 +11,21 @@
|
||||
#include "router.h"
|
||||
#include "test.h"
|
||||
|
||||
|
||||
/** Tese the case when node_get_by_id() returns NULL, node_describe_by_id
|
||||
* should return the base 16 encoding of the id.
|
||||
*/
|
||||
static void
|
||||
test_node_describe_by_id_null_node(void *arg)
|
||||
{
|
||||
const char ID[] = "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA"
|
||||
"\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA";
|
||||
(void) arg;
|
||||
|
||||
#define ID "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA"
|
||||
|
||||
/* make sure node_get_by_id returns NULL */
|
||||
test_assert(!node_get_by_id(ID));
|
||||
test_streq(node_describe_by_id(ID),
|
||||
"$AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
|
||||
done:
|
||||
done:
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user