diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-15 21:29:48 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-15 21:29:48 -0400 |
commit | 34bf9b36905c015f0faf45ee79e0539a0e9e7a3e (patch) | |
tree | bb7307feb8a3c5f967bb0a0020128812f4dffcf3 /src/test/test_dir.c | |
parent | 0e0cef1d60c02e6e88f5dc0deb26074800c1f455 (diff) | |
download | tor-34bf9b36905c015f0faf45ee79e0539a0e9e7a3e.tar.gz tor-34bf9b36905c015f0faf45ee79e0539a0e9e7a3e.zip |
Replace the remaining test_assert instances
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r-- | src/test/test_dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 96acc7bf61..e3af699c23 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -194,7 +194,7 @@ test_dir_formats(void) tt_int_op(rp1->bandwidthcapacity,==, r1->bandwidthcapacity); tt_assert(crypto_pk_cmp_keys(rp1->onion_pkey, pk1) == 0); tt_assert(crypto_pk_cmp_keys(rp1->identity_pkey, pk2) == 0); - //test_assert(rp1->exit_policy == NULL); + //tt_assert(rp1->exit_policy == NULL); tor_free(buf); strlcpy(buf2, @@ -1094,7 +1094,7 @@ test_vrs_for_v3ns(vote_routerstatus_t *vrs, int voter, time_t now) * Didn't expect this, but the old unit test only checked some of them, * so don't assert. */ - /* test_assert(0); */ + /* tt_assert(0); */ } done: @@ -2126,7 +2126,7 @@ test_consensus_for_umbw(networkstatus_t *con, time_t now) tt_assert(con); tt_assert(!con->cert); - // test_assert(con->consensus_method >= MIN_METHOD_TO_CLIP_UNMEASURED_BW_KB); + // tt_assert(con->consensus_method >= MIN_METHOD_TO_CLIP_UNMEASURED_BW_KB); tt_assert(con->consensus_method >= 16); tt_int_op(4,==, smartlist_len(con->routerstatus_list)); /* There should be four listed routers; all voters saw the same in this */ |