Bug 1500523 - Increase DMD timeout. r=njn

This bumps the timeout when waiting for reports to 180 seconds which seems to
be long enough for MacOS in automation.

--HG--
extra : rebase_source : 6eb396e53bd37f6640b7c5402fb997c73af40d99
This commit is contained in:
Eric Rahm 2018-10-22 14:05:47 -07:00
Родитель b00fa9179c
Коммит f5ec738046
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -255,7 +255,7 @@ class AwsyTestCase(MarionetteTestCase):
self.marionette.execute_script(dmd_script, script_timeout=60000)
tmpdir = tempfile.gettempdir()
prefix = "incomplete-unified-memory-report-%s-%d-*" % (checkpointName, iteration)
max_wait = 60
max_wait = 240
elapsed = 0
while fnmatch.filter(os.listdir(tmpdir), prefix) and elapsed < max_wait:
self.logger.info("Waiting for memory report to finish")

Просмотреть файл

@ -206,7 +206,7 @@ private:
static void TimeoutCallback(nsITimer* aTimer, void* aData);
// Note: this timeout needs to be long enough to allow for the
// possibility of DMD reports and/or running on a low-end phone.
static const uint32_t kTimeoutLengthMS = 50000;
static const uint32_t kTimeoutLengthMS = 180000;
mozilla::Mutex mMutex;
bool mIsRegistrationBlocked;