mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1105720 - remove flaky timeouts. r=cpearce.
This commit is contained in:
parent
51ff272372
commit
f4f888f4dc
@ -19,17 +19,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1094549
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
|
||||
function onTimeout() {
|
||||
ok(false, "timed out without getting an error event");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
// We expect this test to finish very soon.
|
||||
// A timeout of 90s should be enough for the slow B2G emulator.
|
||||
var timer = setTimeout(onTimeout, 90000);
|
||||
// Shorter timeout for this test should finish soon.
|
||||
SimpleTest.requestLongerTimeout(0.3);
|
||||
|
||||
function finish(v) {
|
||||
clearTimeout(timer);
|
||||
isnot(v.error, null, "should've got an error event");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user