[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Pulp-list] Need help with a unit test



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

One of the CDS update tests randomly fails and I can't figure out why.
Here's the failure:

File "/home/hudson/workspace/pulp-dev-rhel6/test/unit/test_cds_api.py",
line 313, in test_update_cds
    self.assertEqual('group-2', cds['group_id'])
AssertionError: 'group-2' != u'group-1'


Relevant code:
test_cds_api.py:286
cds.py (in api):210


A few things to notice:
- - It doesn't always fail. That's weird since it's largely just database
changes.
- - 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.

Thanks

- -- 
Jay Dobies
RHCE# 805008743336126
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/

iQEcBAEBAgAGBQJN3nQLAAoJEOMmcTqOSQHCra0H/1YRbNMpWc4lnUyFOsZ2JVcr
MWu+jVxCCk6kfPxvgPkuBr5BzJuwlnH3UU02x1cczfxfeY7Jk6MAIfnqu5C8A84r
NVD929R0s9IchoEd7ueuLJP5TP8+KI4HKjGgcdonzQFd8sPxOjSPFVpkP6unetZp
zNPni26pshOCch6cwJTffYJj8eczqBX3u0PD2wxBKegQrZ1nsJwRKrL7PiNm5Hmb
89mMV/6Ft/0PQXbR/qozIzMKYMT0Levyv0VjmeJk7TmRmFI6mEYhbhBq4n5nrTXZ
5rCCPxi9pZxMguNZ+6URTdgh50Wl7qV67r+HGTsXogVaA8rRoZ17Zr16b/Wlv6g=
=3iVV
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]