aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bridges.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-20 07:53:22 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-20 07:53:22 -0400
commit5acbcf150e7c75f0a9bf6e9d8a4f6f5bec7d549a (patch)
treecc3e9f36d6ee43a5def5e784dd918de815167330 /src/test/test_bridges.c
parent152e4a1e5036e9456f98f7c647a3dc72d24b0f5e (diff)
parent38cb638c325bc2612befc8176c545b1bcae9834f (diff)
downloadtor-5acbcf150e7c75f0a9bf6e9d8a4f6f5bec7d549a.tar.gz
tor-5acbcf150e7c75f0a9bf6e9d8a4f6f5bec7d549a.zip
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/test/test_bridges.c')
-rw-r--r--src/test/test_bridges.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/test/test_bridges.c b/src/test/test_bridges.c
index c4a4cacd98..c44f791e0d 100644
--- a/src/test/test_bridges.c
+++ b/src/test/test_bridges.c
@@ -140,7 +140,6 @@ test_bridges_clear_bridge_list(void *arg)
const smartlist_t *bridgelist;
const smartlist_t *bridgelist_after;
const bridge_info_t *bridge;
- const bridge_info_t *bridge_after;
helper_add_bridges_to_bridgelist(arg);
bridgelist = bridge_list_get();
@@ -152,10 +151,7 @@ test_bridges_clear_bridge_list(void *arg)
clear_bridge_list();
bridgelist_after = bridge_list_get();
tt_ptr_op(bridgelist_after, OP_NE, NULL);
-
- bridge_after = smartlist_get(bridgelist, 0);
- // There now shouldn't be a first bridge
- tt_ptr_op(bridge_after, OP_EQ, NULL);
+ tt_int_op(smartlist_len(bridgelist_after), OP_EQ, 0);
done:
return;