Bug 760905 - Change bounds of test_storage_queue.js to address orange; r=rnewman

This commit is contained in:
Gregory Szorc 2012-07-11 12:06:44 -07:00
parent bb189eab03
commit 7dec6ca6b3

View File

@ -53,8 +53,11 @@ add_test(function test_queue_multiaddremove() {
let items = [{test:"object"}, "teststring", 42];
// Two random numbers: how many items to queue and how many to remove.
let num = Math.floor(Math.random() * 100 + 1);
let rem = Math.floor(Math.random() * num + 1);
// The next test relies on rem > 0.
let num = Math.floor(Math.random() * 100 + 20);
let rem = Math.floor(Math.random() * 15 + 5);
do_check_true(rem < num);
do_check_true(rem > 0);
// First insert all the items we will remove later.
for (let i = 0; i < rem; i++) {