From e53404ea0498d6df6b5f05a06d072dcbe8e38cac Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 14 May 2020 15:58:54 -0400 Subject: [PATCH] Add better test topic logging --- tests/DMAPI/BasicOperation/Test.dm | 5 +++++ tests/DMAPI/LongRunning/Test.dm | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tests/DMAPI/BasicOperation/Test.dm b/tests/DMAPI/BasicOperation/Test.dm index 5f9b79e2f9..21ba9e6226 100644 --- a/tests/DMAPI/BasicOperation/Test.dm +++ b/tests/DMAPI/BasicOperation/Test.dm @@ -26,6 +26,11 @@ world.log << "You really shouldn't be able to read this" /world/Topic(T, Addr, Master, Keys) + world.log << "Topic: [T]" + . = HandleTopic(T) + world.log << "Response: [.]" + +/world/proc/HandleTopic(T) TGS_TOPIC /world/Reboot(reason) diff --git a/tests/DMAPI/LongRunning/Test.dm b/tests/DMAPI/LongRunning/Test.dm index 4c8bf5c7d1..631dcfccae 100644 --- a/tests/DMAPI/LongRunning/Test.dm +++ b/tests/DMAPI/LongRunning/Test.dm @@ -12,6 +12,11 @@ world.TgsInitializationComplete() /world/Topic(T, Addr, Master, Keys) + world.log << "Topic: [T]" + . = HandleTopic(T) + world.log << "Response: [.]" + +/world/proc/HandleTopic(T) TGS_TOPIC world.sleep_offline = FALSE