← Back to team overview

launchpad-dev team mailing list archive

Re: ec2 test failures

 

On Wed, Nov 16, 2011 at 9:22 AM, Abel Deuring
<abel.deuring@xxxxxxxxxxxxx> wrote:
> Hi all,
>
> Running "ec2 land" for lp:~adeuring/launchpad/bug-sorting-2 , I'm
> getting the test failures below. I can't reproduce them locally and I
> don't see any relation to the changes in this branch... Any ideas?

> NameAlreadyTaken: The name 'person-name-923594' is already taken.

No idea.  Have you tried running a clean devel branch through EC2?
Maybe it's a timing issue like below.

> AssertionError: !=:
> reference = u'a moment ago by Person-name-862285 (uploaded by
> Person-name-862290)'
> actual = '18 seconds ago by Person-name-862285 (uploaded by
> Person-name-862290)'

You've probably realized this: the above looks like a timing issue.  The
time between performing the action and rendering the "ago" string is
longer than expected.

I'd change the test to assert that "ago by Person-name-862285" is in the
string rather that the exact match given.

-- 
Benji York


References