mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Whitespace fixes
This commit is contained in:
parent
a5fe84b5a6
commit
2994f00199
@ -561,18 +561,18 @@ test_entry_is_time_to_retry(void *arg)
|
|||||||
|
|
||||||
retval = entry_is_time_to_retry(test_guard,now);
|
retval = entry_is_time_to_retry(test_guard,now);
|
||||||
tt_int_op(retval,==,1);
|
tt_int_op(retval,==,1);
|
||||||
|
|
||||||
test_guard->last_attempted = now - (60*60 - 1);
|
test_guard->last_attempted = now - (60*60 - 1);
|
||||||
|
|
||||||
retval = entry_is_time_to_retry(test_guard,now);
|
retval = entry_is_time_to_retry(test_guard,now);
|
||||||
tt_int_op(retval,==,0);
|
tt_int_op(retval,==,0);
|
||||||
|
|
||||||
test_guard->unreachable_since = now - (6*60*60 + 1);
|
test_guard->unreachable_since = now - (6*60*60 + 1);
|
||||||
test_guard->last_attempted = now - (4*60*60 + 1);
|
test_guard->last_attempted = now - (4*60*60 + 1);
|
||||||
|
|
||||||
retval = entry_is_time_to_retry(test_guard,now);
|
retval = entry_is_time_to_retry(test_guard,now);
|
||||||
tt_int_op(retval,==,1);
|
tt_int_op(retval,==,1);
|
||||||
|
|
||||||
test_guard->unreachable_since = now - (3*24*60*60 - 1);
|
test_guard->unreachable_since = now - (3*24*60*60 - 1);
|
||||||
test_guard->last_attempted = now - (4*60*60 + 1);
|
test_guard->last_attempted = now - (4*60*60 + 1);
|
||||||
|
|
||||||
@ -682,7 +682,7 @@ static const struct testcase_setup_t fake_network = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct testcase_t entrynodes_tests[] = {
|
struct testcase_t entrynodes_tests[] = {
|
||||||
{ "entry_is_time_to_retry", test_entry_is_time_to_retry,
|
{ "entry_is_time_to_retry", test_entry_is_time_to_retry,
|
||||||
TT_FORK, NULL, NULL },
|
TT_FORK, NULL, NULL },
|
||||||
{ "choose_random_entry_no_guards", test_choose_random_entry_no_guards,
|
{ "choose_random_entry_no_guards", test_choose_random_entry_no_guards,
|
||||||
TT_FORK, &fake_network, NULL },
|
TT_FORK, &fake_network, NULL },
|
||||||
|
Loading…
Reference in New Issue
Block a user