diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-07-20 21:13:11 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-07-20 21:13:11 +0000 |
commit | 2a339b7627bad567c54a7e274462f8abf66efdf8 (patch) | |
tree | a17ef56ea38269607341c02b7bf7cc1a95f8f8b8 /src/or/test.c | |
parent | 6d53717215bb6c47b277a46060fb52e92d297a45 (diff) | |
download | tor-2a339b7627bad567c54a7e274462f8abf66efdf8.tar.gz tor-2a339b7627bad567c54a7e274462f8abf66efdf8.zip |
Split uptime into separate field
svn:r2067
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/test.c b/src/or/test.c index 1acd13f183..95556c4452 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -723,13 +723,14 @@ test_dir_format() test_assert(router_dump_router_to_string(buf, 2048, &r1, pk2)>0); strcpy(buf2, "router Magri testaddr1.foo.bar 9000 9002 9003\n" - "platform Tor "VERSION" (up 0 sec) on "); - /* XXX the "0" above is hardcoded, but even if we made it reflect - * uptime, that still wouldn't make it right, because the two - * descriptors might be made on different seconds... hm. */ + "platform Tor "VERSION" on "); strcat(buf2, get_uname()); strcat(buf2, "\n" "published 1970-01-01 00:00:00\n" + "opt uptime 0\n" + /* XXX the "0" above is hardcoded, but even if we made it reflect + * uptime, that still wouldn't make it right, because the two + * descriptors might be made on different seconds... hm. */ "bandwidth 1000 5000 10000\n" "onion-key\n"); strcat(buf2, pk1_str); |