From 2d9afdaa03f0d44d05e3f2fb9d99dd5b059a9cac Mon Sep 17 00:00:00 2001 From: Josh Bell Date: Tue, 18 Mar 2008 21:56:57 +0000 Subject: svn merge -r 82263:82563 svn+ssh://svn.lindenlab.com/svn/linden/branches/Branch_1-19-2-Server --> release Sprinkle "--location" pixie dust into farm curl calls QAR-387 - pull in fix for missing abuse report snapshots (asset-id --> asset_id) / DEV-11758 comment --> template comment tweak by yoz for postcards QAR-351 - Event queuing modifications DEV-11639 - fix for llsdhttp.py to work with newer eventlet API Rotating log_text_message is now part of the cron jobs --- indra/test/llmessageconfig_tut.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'indra/test/llmessageconfig_tut.cpp') diff --git a/indra/test/llmessageconfig_tut.cpp b/indra/test/llmessageconfig_tut.cpp index df50d908c3..7bda48a0a8 100644 --- a/indra/test/llmessageconfig_tut.cpp +++ b/indra/test/llmessageconfig_tut.cpp @@ -35,7 +35,6 @@ #include "lltut.h" #include "llsdserialize.h" #include "llfile.h" -#include "lldir.h" #include "lltimer.h" #include "llframetimer.h" #include "llsdutil.h" @@ -199,4 +198,23 @@ namespace tut LLMessageConfig::getServerDefaultFlavor(), LLMessageConfig::LLSD_FLAVOR); } + + template<> template<> + void LLMessageConfigTestObject::test<8>() + // tests that config changes are picked up/refreshed periodically + { + LLSD config; + config["serverDefaults"]["simulator"] = "template"; + config["messages"]["msg1"]["flavor"] = "llsd"; + config["messages"]["msg1"]["only-send-latest"] = true; + config["messages"]["msg2"]["flavor"] = "llsd"; + config["messages"]["msg2"]["only-send-latest"] = false; + LLMessageConfig::useConfig(config); + ensure_equals("Ensure msg1 exists, sent latest-only", + LLMessageConfig::onlySendLatest("msg1"), + true); + ensure_equals("Ensure msg2 exists, sent latest-only", + LLMessageConfig::onlySendLatest("msg2"), + false); + } } -- cgit v1.2.3