aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_policy.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-05-10 16:45:57 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2018-05-10 16:45:57 +0300
commit036df13a03f6345913fbe5e7806fd00312d41c4d (patch)
tree6f7829424e1411f1b2c41421642c20f44bd3e66d /src/test/test_policy.c
parent8ad97b7dcf143fc488422f9866613fea3d900119 (diff)
downloadtor-036df13a03f6345913fbe5e7806fd00312d41c4d.tar.gz
tor-036df13a03f6345913fbe5e7806fd00312d41c4d.zip
Tweak error handling for #25852
Diffstat (limited to 'src/test/test_policy.c')
-rw-r--r--src/test/test_policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 6ae57be8ce..e89d49aaf5 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -1712,13 +1712,13 @@ test_policies_getinfo_helper_policies(void *arg)
tt_ptr_op(errmsg, OP_NE, NULL);
tt_str_op(errmsg, OP_EQ, "Cannot generate descriptor");
- routerinfo_err = TOR_ROUTERINFO_ERROR_NOT_SO_FAST;
+ routerinfo_err = TOR_ROUTERINFO_ERROR_DESC_REBUILDING;
rv = getinfo_helper_policies(NULL, "exit-policy/full", &answer,
&errmsg);
tt_int_op(rv, OP_EQ, -1);
tt_ptr_op(answer, OP_EQ, NULL);
tt_ptr_op(errmsg, OP_NE, NULL);
- tt_str_op(errmsg, OP_EQ, "Too soon; not ready yet");
+ tt_str_op(errmsg, OP_EQ, "Descriptor still rebuilding - not ready yet");
done:
tor_free(answer);