diff options
author | Mark Palange (Mani) <palange@lindenlab.com> | 2009-11-12 09:19:32 -0800 |
---|---|---|
committer | Mark Palange (Mani) <palange@lindenlab.com> | 2009-11-12 09:19:32 -0800 |
commit | f9f2852ff2d1b11b3bba5811192ccb89c9354877 (patch) | |
tree | bb67beab762b09c04363ac023ce5b2f0fe1a3c26 | |
parent | 51e3a486c6de28eb0a722edeee685192e9bde1b2 (diff) |
DEV-42715 Fixed lllogin SRV request timeout unit test.
Also made SRV config options not persistent.
reviewed by brad
-rw-r--r-- | indra/newview/app_settings/settings.xml | 4 | ||||
-rw-r--r-- | indra/viewer_components/login/tests/lllogin_test.cpp | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index dccf4de651..a530b800a3 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -4253,7 +4253,7 @@ <key>Comment</key> <string>Duration in seconds of the login SRV request timeout</string> <key>Persist</key> - <integer>1</integer> + <integer>0</integer> <key>Type</key> <string>F32</string> <key>Value</key> @@ -4264,7 +4264,7 @@ <key>Comment</key> <string>Name of the message pump that handles SRV request</string> <key>Persist</key> - <integer>1</integer> + <integer>0</integer> <key>Type</key> <string>String</string> <key>Value</key> diff --git a/indra/viewer_components/login/tests/lllogin_test.cpp b/indra/viewer_components/login/tests/lllogin_test.cpp index c3b1838422..56c21016bd 100644 --- a/indra/viewer_components/login/tests/lllogin_test.cpp +++ b/indra/viewer_components/login/tests/lllogin_test.cpp @@ -441,6 +441,14 @@ namespace tut login.connect("login.bar.com", credentials); - ensure_equals("Failed to offline", listener.lastEvent()["change"].asString(), "srvrequest"); + ensure_equals("SRV State", listener.lastEvent()["change"].asString(), "srvrequest"); + + // Get the mainloop eventpump, which needs a pinging in order to drive the + // SRV timeout. + LLEventPump& mainloop(LLEventPumps::instance().obtain("mainloop")); + LLSD frame_event; + mainloop.post(frame_event); + + ensure_equals("SRV Failure", listener.lastEvent()["change"].asString(), "fail.login"); } } |