Closed Bug 993134 Opened 10 years ago Closed 10 years ago

fxa.TestAccountPickler fails on addDummyAccount if an account already exists

Categories

(Android Background Services Graveyard :: Build & Test, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 33

People

(Reporter: mcomella, Assigned: nalexander)

Details

Attachments

(2 files)

Assignee: nobody → nalexander
Status: NEW → ASSIGNED
Attachment #8434459 - Flags: review?(michael.l.comella)
How does the pull request address this bug? I'm not sure I see it. I imagine we have to deleteTestAccounts in setUp(), use numbered accounts (i.e. `TEST_USERNAME + incrementingValue++`), or similar.
Flags: needinfo?(nalexander)
(In reply to Michael Comella (:mcomella) from comment #2)
> How does the pull request address this bug? I'm not sure I see it. I imagine
> we have to deleteTestAccounts in setUp(), use numbered accounts (i.e.
> `TEST_USERNAME + incrementingValue++`), or similar.

We deleteTestAccounts on tearDown, so I'm not too worried about getting into bad state; but I'll add deleting in setUp, so that we know we start clean.  Good idea.
Flags: needinfo?(nalexander)
(In reply to Nick Alexander :nalexander from comment #3)
> (In reply to Michael Comella (:mcomella) from comment #2)
> > How does the pull request address this bug? I'm not sure I see it.

We always use the same test account name(s), but now we don't fail if other accounts exist.  (And we don't try to delete other accounts.)
Comment on attachment 8434459 [details] [review]
Link to Github pull-request: https://github.com/mozilla-services/android-sync/pull/461

Clearing until the deleteAccounts in setUp update.
Attachment #8434459 - Flags: review?(michael.l.comella)
Comment on attachment 8434459 [details] [review]
Link to Github pull-request: https://github.com/mozilla-services/android-sync/pull/461

Pushed patch series again, with review comments folded in.  This really did add only one line (in setUp); I don't see why it required a second pass.
Attachment #8434459 - Flags: review?(michael.l.comella)
Attachment #8434459 - Flags: review?(michael.l.comella) → review+
https://hg.mozilla.org/mozilla-central/rev/74208e2733a4
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 33
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: