Bug 1087120 - Fix intermittent browser_ContentSearch.js failure by increasing timeout for remote search suggestions. r=MattN

This commit is contained in:
Drew Willcoxon 2014-10-31 15:07:59 -07:00
parent fdda3e887e
commit 78863fbec9

View File

@ -6,6 +6,10 @@ const TEST_MSG = "ContentSearchTest";
const CONTENT_SEARCH_MSG = "ContentSearch";
const TEST_CONTENT_SCRIPT_BASENAME = "contentSearch.js";
// This timeout is absurdly high to avoid random failures like bug 1087120.
// That bug was reported when the timeout was 5 seconds, so let's try 10.
const SUGGESTIONS_TIMEOUT = 10000;
var gMsgMan;
add_task(function* GetState() {
@ -201,7 +205,7 @@ add_task(function* GetSuggestions_AddFormHistoryEntry_RemoveFormHistoryEntry() {
data: {
engineName: engine.name,
searchString: searchStr,
remoteTimeout: 5000,
remoteTimeout: SUGGESTIONS_TIMEOUT,
},
});
@ -237,7 +241,7 @@ add_task(function* GetSuggestions_AddFormHistoryEntry_RemoveFormHistoryEntry() {
data: {
engineName: engine.name,
searchString: searchStr,
remoteTimeout: 5000,
remoteTimeout: SUGGESTIONS_TIMEOUT,
},
});