[Pulp-list] Need help with a unit test
jason.dobies at redhat.com
Thu May 26 15:38:51 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
One of the CDS update tests randomly fails and I can't figure out why.
Here's the failure:
line 313, in test_update_cds
AssertionError: 'group-2' != u'group-1'
cds.py (in api):210
A few things to notice:
- - It doesn't always fail. That's weird since it's largely just database
- - When saving the changed CDS to the database, I'm passing "safe=True",
so it shouldn't be an async save thing.
- - The group ID assertion is the last in the series of update assertions.
Since they pass, that means the CDS instance was at least partially updated.
Can someone take a quick look at the code for me and see if there's
something I'm missing? I can't see why this would only sometimes fail.
Freenode: jdob @ #pulp
http://pulpproject.org | http://blog.pulpproject.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the Pulp-list