diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-12-19 09:43:25 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-12-19 09:43:25 -0500 |
commit | 77dea66e19404a4c07f0e738efb7710f542037ed (patch) | |
tree | 8c43ed8c3eaf6be8657ae193a64dfd47ff837deb /src/test/test_options.c | |
parent | b1d029b9a13ffd3cc69bbbebf8d7d2b381751a59 (diff) | |
download | tor-77dea66e19404a4c07f0e738efb7710f542037ed.tar.gz tor-77dea66e19404a4c07f0e738efb7710f542037ed.zip |
Move MinUptimeHidServDirectoryV2 to dirauth module.
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index 1649a25861..3465207166 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -994,13 +994,14 @@ test_options_validate__authdir(void *ignored) free_options_test_data(tdata); tdata = get_options_test_data(ENABLE_AUTHORITY_V3); /* We have to set this value manually, because it won't parse */ - tdata->opt->MinUptimeHidServDirectoryV2 = -1; + get_dirauth_options(tdata->opt)->MinUptimeHidServDirectoryV2 = -1; mock_clean_saved_logs(); ret = options_validate(NULL, tdata->opt, &msg); tt_int_op(ret, OP_EQ, 0); expect_log_msg("MinUptimeHidServDirectoryV2 " "option must be at least 0 seconds. Changing to 0.\n"); - tt_int_op(tdata->opt->MinUptimeHidServDirectoryV2, OP_EQ, 0); + tt_int_op(get_dirauth_options(tdata->opt)->MinUptimeHidServDirectoryV2, + OP_EQ, 0); tor_free(msg); done: |