Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket32806 #1619

Merged
merged 17 commits into from Jan 17, 2020
Merged

Ticket32806 #1619

merged 17 commits into from Jan 17, 2020

Conversation

Labels
None yet
Projects
None yet
4 participants
@nmathewson
Copy link
Contributor

@nmathewson nmathewson commented Dec 19, 2019

No description provided.

@coveralls
Copy link

@coveralls coveralls commented Dec 19, 2019

Pull Request Test Coverage Report for Build 7608

  • 37 of 65 (56.92%) changed or added relevant lines in 7 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.0007%) to 63.015%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/feature/dirauth/process_descs.c 0 2 0.0%
src/feature/dirauth/reachability.c 0 4 0.0%
src/feature/dirauth/dirvote.c 0 7 0.0%
src/feature/dirauth/voteflags.c 7 22 31.82%
Files with Coverage Reduction New Missed Lines %
src/feature/dirauth/dirvote.c 1 64.82%
Totals Coverage Status
Change from base Build 7605: -0.0007%
Covered Lines: 49568
Relevant Lines: 78661

💛 - Coveralls

@@ -23,6 +23,10 @@ CONF_VAR(AuthDirGuardBWGuarantee, MEMUNIT, 0, "2 MB")
/** Boolean: are we on IPv6? */
CONF_VAR(AuthDirHasIPv6Connectivity, BOOL, 0, "0")

/** True iff we should list bad exits, * and vote for all other exits as
Copy link
Contributor

@teor2345 teor2345 Jan 17, 2020

Copy-paste error: there's a stray * in the middle of the line.

@@ -415,6 +409,12 @@ dirauth_options_pre_normalize(void *arg, char **msg_out)
"AuthDirGuardBWGuarantee", msg_out) < 0)
return -1;

if (options->MinUptimeHidServDirectoryV2 < 0) {
Copy link
Contributor

@teor2345 teor2345 Jan 17, 2020

This code is only run by the unit tests: config_parse_units() returned an unsigned 64-bit integer, and units_ok() checks that it's non-negative.

@@ -443,6 +437,12 @@ dirauth_options_validate(const void *arg, char **msg)
t = format_recommended_version_list(options->RecommendedServerVersions, 1);
tor_free(t);

if (options->TestingAuthDirTimeToLearnReachability < 0) {
Copy link
Contributor

@teor2345 teor2345 Jan 17, 2020

This code is only run by the unit tests, see my earlier comments about interval.

@torproject-pusher torproject-pusher merged commit 1bdbb4e into torproject:master Jan 17, 2020
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment