Bug 627300 - Intermittent failure in places/tests/queries/test_tags.js owing to poor book-keeping in the test. test-only, a=bustage-fix.

This commit is contained in:
Andrew Sutherland 2011-01-20 01:38:18 -08:00
parent 3fb39ef252
commit 5701087f08

View File

@ -590,6 +590,12 @@ var gTests = [
cleanDatabase(run_next_test);
},
function lastTestJustCallsTestFinished() {
// close out our over-arching test
do_test_finished();
// and let run_next_test close out its pending test too.
run_next_test();
},
];
// The tag keys in query URIs, i.e., "place:tag=foo&!tags=1"
@ -826,5 +832,9 @@ function setsAreEqual(aArr1, aArr2, aIsOrdered) {
///////////////////////////////////////////////////////////////////////////////
function run_test() {
// Create an overarching test for our entire test run. this is balanced
// by a dummy test as the last test in our test list that just calls
// do_test_finished().
do_test_pending();
run_next_test();
}