Closed Bug 648371 Opened 13 years ago Closed 13 years ago

Convert async tests to use run_next_test helper

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: philikon, Assigned: philikon)

References

Details

(Whiteboard: [prune][qa-])

Attachments

(1 file)

      No description provided.
Attached patch v1Splinter Review
Get rid of Utils.asyncChain in all sync tests apart from test_resource_async and test_resource_ua. Both tests should be converted eventually, but would require some more involved refactoring. Will file follow up for those, if rnewman agrees with that approach.
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #526767 - Flags: review?(rnewman)
Comment on attachment 526767 [details] [diff] [review]
v1

As discussed on IRC:

> -Engines.register(BookmarksEngine);
> +//Engines.register(BookmarksEngine);

I'm not sure I like this approach:

> +add_test(function cleanup() {
> +  _("Clean up.");
> +  Svc.History.removeAllPages();
> +  run_next_test();
> +});

but I see why it's done (given the splitting of some tests into independent mini-tests).

I would prefer for the underlying mechanism to support per-suite and per-test setup and teardown slots, so this cleanup function wouldn't have to pretend to be a test, but perhaps that's an rfe for another day.

Otherwise, this looks good. Going to run tests locally then flip the flag.
Attachment #526767 - Flags: review?(rnewman) → review+
Depends on: 650941
http://hg.mozilla.org/services/services-central/rev/f0cbe8de70c9

Filed bug 650941 for the two left overs.
Whiteboard: [prune] → [prune][fixed in services]
Status: ASSIGNED → NEW
Whiteboard: [prune][fixed in services] → [prune][fixed in services][qa-]
http://hg.mozilla.org/mozilla-central/rev/f0cbe8de70c9
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [prune][fixed in services][qa-] → [prune][qa-]
Target Milestone: --- → mozilla6
Depends on: 587420
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: