aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_pubsub_build.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-03-26 19:56:39 -0400
committerNick Mathewson <nickm@torproject.org>2019-03-26 19:56:39 -0400
commit203e9138d1f714e5ad42884f75d50cd31c3bae3b (patch)
tree31e342dc4010eed9bce053b66affbd2639f7fcde /src/test/test_pubsub_build.c
parentddb31dd58301b524564d6cc98da20e5717b05d4b (diff)
downloadtor-203e9138d1f714e5ad42884f75d50cd31c3bae3b.tar.gz
tor-203e9138d1f714e5ad42884f75d50cd31c3bae3b.zip
Remove message/subsystem numbers from log messages
Having the numbers in those messages makes some of the unit test unstable, by causing them to depend on the initialization order of the naming objects.
Diffstat (limited to 'src/test/test_pubsub_build.c')
-rw-r--r--src/test/test_pubsub_build.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/test/test_pubsub_build.c b/src/test/test_pubsub_build.c
index 9ffe428c0a..ce5bf60080 100644
--- a/src/test/test_pubsub_build.c
+++ b/src/test/test_pubsub_build.c
@@ -242,9 +242,9 @@ test_pubsub_build_missing_pubsub(void *arg)
tt_assert(dispatcher == NULL);
expect_log_msg_containing(
- "Message 0 (bunch_of_coconuts) has publishers, but no subscribers.");
+ "Message \"bunch_of_coconuts\" has publishers, but no subscribers.");
expect_log_msg_containing(
- "Message 1 (yes_we_have_no) has subscribers, but no publishers.");
+ "Message \"yes_we_have_no\" has subscribers, but no publishers.");
done:
pubsub_builder_free(b);
@@ -311,7 +311,7 @@ test_pubsub_build_channels_conflict(void *arg)
b = NULL;
tt_assert(dispatcher == NULL);
- expect_log_msg_containing("Message 0 (bunch_of_coconuts) is associated "
+ expect_log_msg_containing("Message \"bunch_of_coconuts\" is associated "
"with multiple inconsistent channels.");
done:
@@ -350,7 +350,7 @@ test_pubsub_build_types_conflict(void *arg)
b = NULL;
tt_assert(dispatcher == NULL);
- expect_log_msg_containing("Message 0 (bunch_of_coconuts) is associated "
+ expect_log_msg_containing("Message \"bunch_of_coconuts\" is associated "
"with multiple inconsistent message types.");
done:
@@ -383,8 +383,8 @@ test_pubsub_build_pubsub_same(void *arg)
b = NULL;
tt_assert(dispatcher == NULL);
- expect_log_msg_containing("Message 0 (bunch_of_coconuts) is published "
- "and subscribed by the same subsystem 0 (sys1)");
+ expect_log_msg_containing("Message \"bunch_of_coconuts\" is published "
+ "and subscribed by the same subsystem \"sys1\".");
done:
pubsub_builder_free(b);
@@ -523,9 +523,11 @@ test_pubsub_build_pubsub_redundant(void *arg)
tt_assert(dispatcher == NULL);
expect_log_msg_containing(
- "is configured to be published by subsystem 1 (sys2) more than once");
+ "Message \"yes_we_have_no\" is configured to be published by "
+ "subsystem \"sys2\" more than once.");
expect_log_msg_containing(
- "is configured to be subscribed by subsystem 1 (sys2) more than once");
+ "Message \"bunch_of_coconuts\" is configured to be subscribed by "
+ "subsystem \"sys2\" more than once.");
done:
pubsub_builder_free(b);