[DRE-maint] Bug#840664: ruby-faker: FTBFS randomly (failing tests)

Santiago Vila sanvila at unex.es
Mon Oct 31 11:36:18 UTC 2016


On Mon, Oct 31, 2016 at 04:40:33PM +0530, Pirate Praveen wrote:
> Control: tags -1 pending
> 
> On Thu, 13 Oct 2016 18:08:12 +0200 (CEST) Santiago Vila
> <sanvila at unex.es> wrote:
> > At least the following tests seem to be wrongly designed:
> > 
> >   => 14:     assert Faker::Internet.email.match(/.+@[^.].+\.\w+/)
> 
> I don't see a reason for this to fail randomly.

Try generating a lot of random emails and stop at the first one that
does not meet the above assert (and then print the generated email address).

Then you will see why the email addresses are not generated correctly,
or else why the test is wrong.

I did something like that here in python:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838828

but I'm not fluent enough in ruby.

[ Please Cc: me on bug reports, I'm reading this by chance ].

Thanks.



More information about the Pkg-ruby-extras-maintainers mailing list