[openstack-dev] [Neutron]Unit test failed but devstack was okay

Sridhar Gaddam sgaddam at redhat.com
Mon Jul 20 08:46:02 UTC 2015


Hi Zhi Chang,

You will have to use sorted to fix the test failure.
i.e., self.assertEqual(sorted(['2.2.2.2','1.1.1.1']),sorted(dns_list))

--Sridhar.

On 07/20/2015 11:17 AM, Zhi Chang wrote:
> Hi, all.
>     I write a unit test in devstack and runs all tests okay on my 
> environment. Why does Jenkins failed when I upload my patch into 
> review? The patch is https://review.openstack.org/#/c/199588/. The 
> failed test was named 
> "neutron.tests.unit.plugins.embrane.test_embrane_neutron_plugin.TestEmbraneSubnetsV2.test_subnet_lifecycle_dns_retains_order". 
> But it is okay on my environment. Could someone tells me the reason? 
> What should I do?
>
>
> Thanks
> Zhi Chang
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150720/12c53679/attachment.html>


More information about the OpenStack-dev mailing list