mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix nodelist/node_is_dir test wrt 12538.
This commit is contained in:
parent
c4fb7ad034
commit
a6c9fcc486
@ -85,7 +85,7 @@ test_nodelist_node_is_dir(void *arg)
|
||||
|
||||
rs.is_v2_dir = 0;
|
||||
rs.dir_port = 1;
|
||||
tt_assert(node_is_dir(&node));
|
||||
tt_assert(! node_is_dir(&node));
|
||||
|
||||
node.rs = NULL;
|
||||
tt_assert(!node_is_dir(&node));
|
||||
@ -94,10 +94,10 @@ test_nodelist_node_is_dir(void *arg)
|
||||
tt_assert(node_is_dir(&node));
|
||||
ri.supports_tunnelled_dir_requests = 0;
|
||||
ri.dir_port = 1;
|
||||
tt_assert(node_is_dir(&node));
|
||||
tt_assert(! node_is_dir(&node));
|
||||
|
||||
done:
|
||||
return;
|
||||
done:
|
||||
return;
|
||||
}
|
||||
|
||||
#define NODE(name, flags) \
|
||||
|
Loading…
Reference in New Issue
Block a user