diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-10-03 15:50:54 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2017-10-03 15:55:19 +0300 |
commit | f7306b16ecaeb07eb64d0fcbfcc43754533818c2 (patch) | |
tree | 1f0f90f0cfc1433918ee33d61bb57db9ab9a621c /src/test/test_entrynodes.c | |
parent | d891faddc79c8cb58723edd431895927871d3803 (diff) | |
download | tor-f7306b16ecaeb07eb64d0fcbfcc43754533818c2.tar.gz tor-f7306b16ecaeb07eb64d0fcbfcc43754533818c2.zip |
entrynodes: Better naming for dir info check functions.
Diffstat (limited to 'src/test/test_entrynodes.c')
-rw-r--r-- | src/test/test_entrynodes.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test_entrynodes.c b/src/test/test_entrynodes.c index 472383f382..f9d981953d 100644 --- a/src/test/test_entrynodes.c +++ b/src/test/test_entrynodes.c @@ -1643,7 +1643,8 @@ test_entry_guard_manage_primary(void *arg) { /* Check that we have all required dirinfo for the primaries (that's done * in big_fake_network_setup()) */ - char *dir_info_str = guard_selection_get_dir_info_status_str(gs, 0, 0, 0); + char *dir_info_str = + guard_selection_get_err_str_if_dir_info_missing(gs, 0, 0, 0); tt_assert(!dir_info_str); /* Now artificially remove the first primary's descriptor and re-check */ @@ -1652,7 +1653,7 @@ test_entry_guard_manage_primary(void *arg) /* Change the first primary's identity digest so that the mocked functions * can't find its descriptor */ memset(first_primary->identity, 9, sizeof(first_primary->identity)); - dir_info_str = guard_selection_get_dir_info_status_str(gs, 1, 2, 3); + dir_info_str =guard_selection_get_err_str_if_dir_info_missing(gs, 1, 2, 3); tt_str_op(dir_info_str, OP_EQ, "We're missing descriptors for 1/2 of our primary entry guards " "(total microdescriptors: 2/3)."); |