From 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 Mon Sep 17 00:00:00 2001
From: Jacek Antonelli
Date: Fri, 15 Aug 2008 23:45:50 -0500
Subject: Second Life viewer sources 1.20.7

---
 linden/indra/test/llmessageconfig_tut.cpp | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

(limited to 'linden/indra/test/llmessageconfig_tut.cpp')

diff --git a/linden/indra/test/llmessageconfig_tut.cpp b/linden/indra/test/llmessageconfig_tut.cpp
index e5dd328..869070e 100644
--- a/linden/indra/test/llmessageconfig_tut.cpp
+++ b/linden/indra/test/llmessageconfig_tut.cpp
@@ -221,4 +221,21 @@ namespace tut
 					  LLMessageConfig::onlySendLatest("msg2"),
 					  false);
 	}
+
+	template<> template<>
+	void LLMessageConfigTestObject::test<9>()
+		 // tests that event queue max is reloaded
+	{
+		LLSD config;
+		config["maxQueuedEvents"] = 200;
+		LLMessageConfig::useConfig(config);
+		ensure_equals("Ensure setting maxQueuedEvents",
+					  LLMessageConfig::getMaxQueuedEvents(),
+					  200);
+
+		LLMessageConfig::useConfig(LLSD());
+		ensure_equals("Ensure default of event queue max 100",
+					  LLMessageConfig::getMaxQueuedEvents(),
+					  100);
+	}	 
 }
-- 
cgit v1.1